get-json-basename
v0.1.0
Published
Get the basename of a JSON filepath without the file extension.
Downloads
4
Maintainers
Readme
get-json-basename
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.