--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
9
node_modules/replace-ext/index.js
generated
vendored
Normal file
9
node_modules/replace-ext/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var path = require('path');
|
||||
|
||||
module.exports = function(npath, ext) {
|
||||
if (typeof npath !== 'string') return npath;
|
||||
if (npath.length === 0) return npath;
|
||||
|
||||
var nFileName = path.basename(npath, path.extname(npath))+ext;
|
||||
return path.join(path.dirname(npath), nFileName);
|
||||
};
|
||||
Loading…
Reference in a new issue