0.1.0 • Published 7 years ago

get-json-basename v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

get-json-basename

npm Version GitHub License Build Status

Get the basename of a JSON filepath without the file extension.

Install

You can install this module via the following command.

$ npm install --save get-json-basename

Usage

const getJsonBasename = require('get-json-basename');

getJsonBasename('/path/to/file.json'); // > file
getJsonBasename('/dev/null');          // > null
getJsonBasename('/var/log/test.txt');  // > test.txt

Testing

$ npm test

License

This project is licensed under the terms of the MIT License (Expat). You can view the full license here.