Mods/node_modules/replace-ext
Repository files (latest commit first)
Filename Latest commit message Latest commit date
oitsjustjose 6b60015c02 --
2017-02-26 17:06:42 -05:00
..
test -- 2017-02-26 17:06:42 -05:00
.npmignore -- 2017-02-26 17:06:42 -05:00
.travis.yml -- 2017-02-26 17:06:42 -05:00
index.js -- 2017-02-26 17:06:42 -05:00
LICENSE -- 2017-02-26 17:06:42 -05:00
package.json -- 2017-02-26 17:06:42 -05:00
README.md -- 2017-02-26 17:06:42 -05: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