ShenNong_Simple/packages/字体精简工具/node_modules/replace-ext
2024-10-30 15:28:42 +08:00
..
test 神农简化版 2024-10-30 15:28:42 +08:00
.npmignore 神农简化版 2024-10-30 15:28:42 +08:00
.travis.yml 神农简化版 2024-10-30 15:28:42 +08:00
index.js 神农简化版 2024-10-30 15:28:42 +08:00
LICENSE 神农简化版 2024-10-30 15:28:42 +08:00
package.json 神农简化版 2024-10-30 15:28:42 +08:00
README.md 神农简化版 2024-10-30 15:28:42 +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