remove-ext
v1.0.0
Published
Remove the extension from the string path to file
Downloads
493
Readme
remove-ext
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.