Get the basename of a JSON filepath without the file extension.
You can install this module via the following command.
$ npm install --save get-json-basename
const getJsonBasename = require('get-json-basename');
getJsonBasename('/path/to/file.json'); // > file
getJsonBasename('/dev/null'); // > null
getJsonBasename('/var/log/test.txt'); // > test.txt
$ npm test
This project is licensed under the terms of the MIT License (Expat). You can view the full license here.