名称 最后更新
..
test 正在载入提交数据...
.npmignore 正在载入提交数据...
.travis.yml 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
index.js 正在载入提交数据...
package.json 正在载入提交数据...

replace-ext NPM version Build Status Coveralls Status Dependency Status

Information

Package replace-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