0.2.0 • Published 9 years ago
is-json-file v0.2.0
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-fileUsage
const isJsonFile = require('is-json-file');
let filename = 'taco-tuesday.json';
isJsonFile(filename); // > true
let notJson = 'laser-giraffe.txt';
isJsonFile(notJson); // > falseTesting
$ npm testLicense
This project is licensed under the terms of the MIT License (Expat). You can view the full license here.