shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
filename
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
Return the filename from the passed path with or without the extension
Params
- path*-String
The path to take the filename from
- withExtensiontrueBoolean
Tell if we want the filename with or without the extension
Return
- -String
The requested filename
Example
import { filename } from '@blackbyte/sugar/fs';
filename('hello/world.js'); // => world.jsTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space