drop-extnames
v1.0.3
Published
Drops all extnames from file path.
Downloads
1
Maintainers
Readme
drop-extnames
Because I needed to drop all extnames from path too many times.
Install
npm install --save drop-extnames
API
dropExts(path)
path: String
(file path)
Return: String
Example:
let dropExts = require('drop-extnames');
dropExts('anywhere/something.tar.gz'); // = 'anywhere/something'
dropExts('something.tar.gz'); // = 'something'