layui-js/node_modules/replace-ext
2017-08-21 08:50:25 +08:00
..
test clear 2017-08-21 08:50:25 +08:00
.npmignore clear 2017-08-21 08:50:25 +08:00
.travis.yml clear 2017-08-21 08:50:25 +08:00
index.js clear 2017-08-21 08:50:25 +08:00
LICENSE clear 2017-08-21 08:50:25 +08:00
package.json clear 2017-08-21 08:50:25 +08:00
README.md clear 2017-08-21 08:50:25 +08:00

replace-ext NPM version Build Status Coveralls Status Dependency Status

Information

Packagereplace-ext
Description Replaces a file extension with another one
Node Version >= 0.4

Usage

var replaceExt = require('replace-ext');

var path = '/some/dir/file.js';
var npath = replaceExt(path, '.coffee');

console.log(npath); // /some/dir/file.coffee