is-json-file

0.2.0 • Public • Published

is-json-file

npm Version GitHub License Build Status

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 = require('is-json-file');
 
let filename = 'taco-tuesday.json';
 
isJsonFile(filename); // > true
 
let notJson = 'laser-giraffe.txt';
 
isJsonFile(notJson); // > false

Testing

$ npm test

License

This project is licensed under the terms of the MIT License (Expat). You can view the full license here.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i is-json-file

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • radioactivehamster