1.0.0 • Published 11 years ago

remove-ext v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
11 years ago

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.