Skip to content

Richienb/file-ext

Repository files navigation

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.

About

Extract the file extension from a path.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published