# is-json-file

> Determine if a resource is a JSON file.

Latest version **0.2.0** (published 2017-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-json-file
pnpm add is-json-file
yarn add is-json-file
bun add is-json-file
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-03-05 |
| First published | 2017-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | James Benner |
| Maintainers | radioactivehamster |
| Keywords | file, filename, is, JSON |

## Links

- npm: https://www.npmjs.com/package/is-json-file
- Repository: https://github.com/jbenner-radham/is-json-file
- Homepage: https://github.com/jbenner-radham/is-json-file#readme
- Issues: https://github.com/jbenner-radham/is-json-file/issues
- npm.io page: https://npm.io/package/is-json-file

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.0 (latest) — 2017-03-05
- 0.1.0 — 2017-03-05

## README

is-json-file
============
[![npm Version][NPM VERSION BADGE]][NPM PAGE]
[![GitHub License][LICENSE BADGE]][LICENSE PAGE]
[![Build Status][BUILD BADGE]][BUILD PAGE]

Determine if a resource is a JSON file.

Install
-------
You can install this module via the following command.

```sh
$ npm install --save is-json-file
```

Usage
-----
```js
const isJsonFile = require('is-json-file');

let filename = 'taco-tuesday.json';

isJsonFile(filename); // > true

let notJson = 'laser-giraffe.txt';

isJsonFile(notJson); // > false
```

Testing
-------
```sh
$ npm test
```

License
-------
This project is licensed under the terms of the [MIT License (Expat)](https://tldrlegal.com/l/mit). You can view the full license [here](LICENSE).

[BUILD BADGE]: https://img.shields.io/travis/jbenner-radham/is-json-file.svg?style=flat-square
[BUILD PAGE]: https://travis-ci.org/jbenner-radham/is-json-file
[LICENSE BADGE]:  	https://img.shields.io/github/license/jbenner-radham/is-json-file.svg?style=flat-square
[LICENSE PAGE]: https://github.com/jbenner-radham/is-json-file/blob/master/LICENSE
[NPM PAGE]: https://www.npmjs.com/package/is-json-file
[NPM VERSION BADGE]: https://img.shields.io/npm/v/is-json-file.svg?style=flat-square

---
_Source: https://npm.io/package/is-json-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
