npm.io
1.0.3 • Published 9 years ago

drop-extnames

Licence
MIT
Version
1.0.3
Deps
0
Vulns
0
Weekly
0

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'

Keywords