backoffice/node_modules/replace-ext
root ab9f8bb658 first commit 2020-02-06 10:09:39 +00:00
..
test first commit 2020-02-06 10:09:39 +00:00
.npmignore first commit 2020-02-06 10:09:39 +00:00
.travis.yml first commit 2020-02-06 10:09:39 +00:00
LICENSE first commit 2020-02-06 10:09:39 +00:00
README.md first commit 2020-02-06 10:09:39 +00:00
index.js first commit 2020-02-06 10:09:39 +00:00
package.json first commit 2020-02-06 10:09:39 +00:00

README.md

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