get-json-basename

0.1.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i get-json-basename

    Weekly Downloads

    4

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • radioactivehamster