1 # replace-ext [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url]
8 <td>Package</td><td>replace-ext</td>
12 <td>Replaces a file extension with another one</td>
23 var replaceExt = require('replace-ext');
25 var path = '/some/dir/file.js';
26 var npath = replaceExt(path, '.coffee');
28 console.log(npath); // /some/dir/file.coffee
31 [npm-url]: https://npmjs.org/package/replace-ext
32 [npm-image]: https://badge.fury.io/js/replace-ext.png
34 [travis-url]: https://travis-ci.org/wearefractal/replace-ext
35 [travis-image]: https://travis-ci.org/wearefractal/replace-ext.png?branch=master
37 [coveralls-url]: https://coveralls.io/r/wearefractal/replace-ext
38 [coveralls-image]: https://coveralls.io/repos/wearefractal/replace-ext/badge.png
40 [depstat-url]: https://david-dm.org/wearefractal/replace-ext
41 [depstat-image]: https://david-dm.org/wearefractal/replace-ext.png
43 [david-url]: https://david-dm.org/wearefractal/replace-ext
44 [david-image]: https://david-dm.org/wearefractal/replace-ext.png?theme=shields.io