Skip to content

dy/get-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Tiny path.extname - get extension of a file/path string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published