wishthis/node_modules/replace-ext
2022-04-08 12:55:35 +02:00
..
test Install yarn 2022-04-08 12:55:35 +02:00
.npmignore Install yarn 2022-04-08 12:55:35 +02:00
.travis.yml Install yarn 2022-04-08 12:55:35 +02:00
index.js Install yarn 2022-04-08 12:55:35 +02:00
LICENSE Install yarn 2022-04-08 12:55:35 +02:00
package.json Install yarn 2022-04-08 12:55:35 +02:00
README.md Install yarn 2022-04-08 12:55:35 +02: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