1.0.0 • Published 4 years ago
file-ext v1.0.0
File Ext
Extract the file extension from a path.
Install
npm install file-ext
Usage
const fileExt = require("file-ext");
fileExt("a/b.txt");
//=> 'txt'
API
fileExt(filename)
filename
Type: string
The filename to extract the extension from.
1.0.0
4 years ago