blob: 3f76938e44b1a7a483692e44855bf50ed90252b5 (
plain)
1
2
3
4
5
6
7
8
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);
};
|