package
Tiny path.extname method
npm install get-ext
GitHub-flavored package documentation.
Across all versions, last 30 days.
13,764 in 30 days
Runtime metadata.
Tagged topics.
Latest published Aug 25, 2016
latest
Registry package owners.
dfcreative
df.creative@gmail.com
Get extension from a path/filename string. Because path is too massive, and other extname-like libs are too big or wrong.
path
const extname = require('get-ext'); let ext = extname('./my/path/to.my/file.svg'); //ext === '.svg'