Skip to content

jbenner-radham/get-json-basename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published