remove-json-extension
v1.0.0
Published
Remove the json extension from a path.
Downloads
4
Readme
remove-json-extension
Remove the json extension from a path.
Installation
npm install --save remove-json-extension
Usage
var removeJsonExtension = require('remove-json-extension')
removeJsonExtension('some/json/file.json') // => 'some/json/file'
removeJsonExtension('some/json/file.JSON') // => 'some/json/file'
removeJsonExtension('foo/bar.js') // => 'foo/bar.js'
License
MIT
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander (@4lpine).
This package was initially generated with yeoman and the p generator.