file-ext
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

File Ext Travis CI Build Status

Extract the file extension from a path.

NPM Badge

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.

Package Sidebar

Install

npm i file-ext

Weekly Downloads

760

Version

1.0.0

License

MIT

Unpacked Size

2.96 kB

Total Files

6

Last publish

Collaborators

  • richienb