Package Exports
- modify-filename
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (modify-filename) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
modify-filename 
Modify the filename in a path
Install
$ npm install --save modify-filename
Usage
var modifyFilename = require('modify-filename');
modifyFilename('src/unicorn.png', function (filename, extension) {
return filename + '-rainbow' + extension;
});
//=> 'src/unicorn-rainbow.png'
modifyFilename(['src/unicorn.png', 'src/pony.png'], function (filename, extension) {
return filename + '-rainbow' + extension;
});
//=> ['src/unicorn-rainbow.png', 'src/pony-rainbow.png']
License
MIT © Sindre Sorhus