drop-extnames

1.0.3 • Public • Published

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'

Package Sidebar

Install

npm i drop-extnames

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • t10ko