{"id":15365491,"url":"https://github.com/tunnckocore/then-read-json","last_synced_at":"2026-02-16T08:05:44.554Z","repository":{"id":65412372,"uuid":"36566769","full_name":"tunnckoCore/then-read-json","owner":"tunnckoCore","description":"Read JSON file using promises","archived":false,"fork":false,"pushed_at":"2016-07-17T11:56:26.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T12:33:56.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://j.mp/1FTES4q","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/tunnckoCore.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-30T16:48:15.000Z","updated_at":"2019-07-16T07:45:20.000Z","dependencies_parsed_at":"2023-01-22T07:55:24.655Z","dependency_job_id":null,"html_url":"https://github.com/tunnckoCore/then-read-json","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fthen-read-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fthen-read-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fthen-read-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fthen-read-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tunnckoCore","download_url":"https://codeload.github.com/tunnckoCore/then-read-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766733,"owners_count":21158301,"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":[],"created_at":"2024-10-01T13:14:53.320Z","updated_at":"2026-02-16T08:05:44.503Z","avatar_url":"https://github.com/tunnckoCore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# then-read-json [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] \n\n\u003e Read JSON file using promises\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n\n## Install\n```\nnpm i then-read-json --save\nnpm test\n```\n\n\n## Usage\n\u003e For more use-cases see the [tests](./test.js)\n\n```js\nvar thenReadJson = require('then-read-json')\n\nthenReadJson('./package.json')\n.then(function (res) {\n  console.log(res)\n  //=\u003e {name: 'then-read-json' ...}\n})\n.catch(console.error)\n```\n\n\n## Related\n- [make-callback](https://github.com/tunnckoCore/make-callback): Make synchronous function to support callback api\n- [then-parse-json](https://github.com/tunnckoCore/then-parse-json): Gracefully parse JSON using promises - promisified JSON.parse\n- [then-stringify-json](https://github.com/tunnckoCore/then-stringify-json): Gracefully stringify JSON using promises - promisified JSON.stringify\n- [then-write-json](https://github.com/tunnckocore/then-write-json): Write contents to JSON file using JSON.stringify and promises… [more](https://github.com/tunnckocore/then-write-json)\n- [then-write-file](https://github.com/tunnckocore/then-write-file): Write file to disk, using promises and creating recursively… [more](https://github.com/tunnckocore/then-write-file)\n- [try-read-json](https://github.com/tunnckoCore/try-read-json): Fast, meaningful and correct try/catch flow for reading JSON with JSON.parse - support optional callback\n\n\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/then-read-json/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckocore.tk][author-www-img]][author-www-url] [![keybase tunnckocore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n\n[npmjs-url]: https://www.npmjs.com/package/then-read-json\n[npmjs-img]: https://img.shields.io/npm/v/then-read-json.svg?label=then-read-json\n\n[license-url]: https://github.com/tunnckoCore/then-read-json/blob/master/LICENSE.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/then-read-json\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/then-read-json.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/then-read-json\n[travis-img]: https://img.shields.io/travis/tunnckoCore/then-read-json.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/then-read-json\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/then-read-json.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/then-read-json\n[david-img]: https://img.shields.io/david/tunnckoCore/then-read-json.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/messages\n[new-message-img]: https://img.shields.io/badge/send%20me-message-green.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Fthen-read-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftunnckocore%2Fthen-read-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Fthen-read-json/lists"}