get-ext

1.0.2 • Public • Published

get-ext stable

Get extension from a path/filename string. Because path is too massive, and other extname-like libs are too big or wrong.

npm install get-ext

const extname = require('get-ext');
 
let ext = extname('./my/path/to.my/file.svg');
 
//ext === '.svg'

/get-ext/

    Package Sidebar

    Install

    npm i get-ext

    Weekly Downloads

    2,503

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • dfcreative