{"id":15854222,"url":"https://github.com/afeiship/read-pkg-json","last_synced_at":"2026-05-07T11:33:48.108Z","repository":{"id":61777461,"uuid":"192094378","full_name":"afeiship/read-pkg-json","owner":"afeiship","description":"Read package.json file.","archived":false,"fork":false,"pushed_at":"2024-02-25T02:22:50.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T22:10:08.555Z","etag":null,"topics":["cjs","esm","json","npm","package","pkg","read"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-15T15:29:49.000Z","updated_at":"2024-02-25T05:24:05.000Z","dependencies_parsed_at":"2024-02-24T17:28:20.102Z","dependency_job_id":"fb6508ca-2fca-4a28-872f-35388e75163a","html_url":"https://github.com/afeiship/read-pkg-json","commit_stats":null,"previous_names":["afeiship/read-pkg-json"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/read-pkg-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fread-pkg-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fread-pkg-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fread-pkg-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fread-pkg-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/read-pkg-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fread-pkg-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32735204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cjs","esm","json","npm","package","pkg","read"],"created_at":"2024-10-05T19:41:10.803Z","updated_at":"2026-05-07T11:33:48.088Z","avatar_url":"https://github.com/afeiship.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# read-pkg-json\n\u003e Read package.json file.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install @jswork/read-pkg-json\n```\n\n## usage\n```js\nimport readPkgJson from '@jswork/read-pkg-json';\n\n// 1. current dir\nconst pkg = readPkgJson();\n// 2. specify dir\nconst pkg = readPkgJson('path/to/your/project');\n```\n\n## types\n```ts\n/// \u003creference types=\"@jswork/read-pkg-json/global.d.ts\" /\u003e\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/read-pkg-json/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/read-pkg-json\n[version-url]: https://npmjs.org/package/@jswork/read-pkg-json\n\n[license-image]: https://img.shields.io/npm/l/@jswork/read-pkg-json\n[license-url]: https://github.com/afeiship/read-pkg-json/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/read-pkg-json\n[size-url]: https://github.com/afeiship/read-pkg-json/blob/master/dist/index.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/read-pkg-json\n[download-url]: https://www.npmjs.com/package/@jswork/read-pkg-json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fread-pkg-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fread-pkg-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fread-pkg-json/lists"}