{"id":21356163,"url":"https://github.com/jbenner-radham/is-json-file","last_synced_at":"2026-05-22T05:11:18.323Z","repository":{"id":57277325,"uuid":"83938092","full_name":"jbenner-radham/is-json-file","owner":"jbenner-radham","description":"Determine if a resource is a JSON file.","archived":false,"fork":false,"pushed_at":"2017-03-05T16:58:13.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T23:34:15.432Z","etag":null,"topics":["file","filename","filter","json"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbenner-radham.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-05T02:05:58.000Z","updated_at":"2017-03-05T19:57:54.000Z","dependencies_parsed_at":"2022-09-17T02:22:12.145Z","dependency_job_id":null,"html_url":"https://github.com/jbenner-radham/is-json-file","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbenner-radham%2Fis-json-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbenner-radham%2Fis-json-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbenner-radham%2Fis-json-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbenner-radham%2Fis-json-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbenner-radham","download_url":"https://codeload.github.com/jbenner-radham/is-json-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830923,"owners_count":20354850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file","filename","filter","json"],"created_at":"2024-11-22T04:29:13.580Z","updated_at":"2026-05-22T05:11:13.302Z","avatar_url":"https://github.com/jbenner-radham.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"is-json-file\n============\n[![npm Version][NPM VERSION BADGE]][NPM PAGE]\n[![GitHub License][LICENSE BADGE]][LICENSE PAGE]\n[![Build Status][BUILD BADGE]][BUILD PAGE]\n\nDetermine if a resource is a JSON file.\n\nInstall\n-------\nYou can install this module via the following command.\n\n```sh\n$ npm install --save is-json-file\n```\n\nUsage\n-----\n```js\nconst isJsonFile = require('is-json-file');\n\nlet filename = 'taco-tuesday.json';\n\nisJsonFile(filename); // \u003e true\n\nlet notJson = 'laser-giraffe.txt';\n\nisJsonFile(notJson); // \u003e false\n```\n\nTesting\n-------\n```sh\n$ npm test\n```\n\nLicense\n-------\nThis project is licensed under the terms of the [MIT License (Expat)](https://tldrlegal.com/l/mit). You can view the full license [here](LICENSE).\n\n[BUILD BADGE]: https://img.shields.io/travis/jbenner-radham/is-json-file.svg?style=flat-square\n[BUILD PAGE]: https://travis-ci.org/jbenner-radham/is-json-file\n[LICENSE BADGE]:  \thttps://img.shields.io/github/license/jbenner-radham/is-json-file.svg?style=flat-square\n[LICENSE PAGE]: https://github.com/jbenner-radham/is-json-file/blob/master/LICENSE\n[NPM PAGE]: https://www.npmjs.com/package/is-json-file\n[NPM VERSION BADGE]: https://img.shields.io/npm/v/is-json-file.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbenner-radham%2Fis-json-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbenner-radham%2Fis-json-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbenner-radham%2Fis-json-file/lists"}