FlyUp/packages/字体精简工具/node_modules/replace-ext
2024-07-10 18:24:08 +08:00
..
test 增加分享 2024-07-10 18:24:08 +08:00
.npmignore 增加分享 2024-07-10 18:24:08 +08:00
.travis.yml 增加分享 2024-07-10 18:24:08 +08:00
index.js 增加分享 2024-07-10 18:24:08 +08:00
LICENSE 增加分享 2024-07-10 18:24:08 +08:00
package.json 增加分享 2024-07-10 18:24:08 +08:00
README.md 增加分享 2024-07-10 18:24:08 +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