shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
extension
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
Return the passed file path extension
Params
- path*-String
The file path to get the extension from
Return
- -String
The file extension
Example
import { extension } from '@blackbyte/sugar/fs';
extension('hello/world.jpg'); // => jpgTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space