ShenNong/packages/字体精简工具/node_modules/replace-ext
2024-06-21 18:44:06 +08:00
..
test 神农首次提交 2024-06-21 18:44:06 +08:00
.npmignore 神农首次提交 2024-06-21 18:44:06 +08:00
.travis.yml 神农首次提交 2024-06-21 18:44:06 +08:00
index.js 神农首次提交 2024-06-21 18:44:06 +08:00
LICENSE 神农首次提交 2024-06-21 18:44:06 +08:00
package.json 神农首次提交 2024-06-21 18:44:06 +08:00
README.md 神农首次提交 2024-06-21 18:44:06 +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