remove-ext

1.0.0 • Public • Published

remove-ext Build Status

Remove the extension from the string path to file. It's similar to path.basename.

Install the module with: npm install remove-ext

Example

var rmExt  = require('remove-ext')
    path   = '/path/to/gif.gif',
    result = rmExt(path, 'gif');
 
console.log(result); // 'path/to/gif'

License

Copyright (c) 2014 Fredrik Forsmo
Licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i remove-ext

Weekly Downloads

270

Version

1.0.0

License

MIT

Last publish

Collaborators

  • frozzare