is-json-file
Determine if a resource is a JSON file.
Install
You can install this module via the following command.
$ npm install --save is-json-file
Usage
const isJsonFile = ; let filename = 'taco-tuesday.json'; ; // > true let notJson = 'laser-giraffe.txt'; ; // > false
Testing
$ npm test
License
This project is licensed under the terms of the MIT License (Expat). You can view the full license here.