1.0.3 • Published 7 years ago

drop-extnames v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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'