{"_id":"read-pkg","_rev":"4130050","name":"read-pkg","description":"Read a package.json file","dist-tags":{"latest":"10.1.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-03-01T18:31:23.000Z","created":"2015-09-02T08:47:51.680Z","10.1.0":"2026-02-08T14:30:34.915Z","10.0.0":"2025-11-07T18:07:21.696Z","9.0.1":"2023-11-16T08:39:25.244Z","9.0.0":"2023-11-02T19:21:50.347Z","8.1.0":"2023-08-22T16:26:03.107Z","8.0.0":"2023-04-07T05:32:47.529Z","7.1.0":"2022-02-08T06:32:10.789Z","7.0.0":"2021-08-14T23:43:06.233Z","6.0.0":"2021-03-28T07:02:22.982Z","5.2.0":"2019-07-11T08:30:48.441Z","5.1.1":"2019-04-27T10:27:59.808Z","5.1.0":"2019-04-24T04:03:19.376Z","5.0.0":"2019-03-10T11:37:24.281Z","4.0.1":"2018-06-26T04:10:59.370Z","4.0.0":"2018-06-25T16:06:30.381Z","3.0.0":"2017-11-04T08:07:32.640Z","2.0.0":"2016-09-28T08:44:31.441Z","1.1.0":"2015-09-05T09:51:50.133Z","1.0.0":"2015-09-02T08:47:51.680Z"},"users":{"nesterone":true,"danielbayley":true,"huhgawz":true,"dr2009":true,"zhenguo.zhao":true,"kiinlam":true,"hualei":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"versions":{"10.1.0":{"name":"read-pkg","version":"10.1.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && cd test && node --test test.js"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.4","normalize-package-data":"^8.0.0","parse-json":"^8.3.0","type-fest":"^5.4.4","unicorn-magic":"^0.4.0"},"devDependencies":{"xo":"^1.2.3"},"gitHead":"ae4bbc6588ba8707f931fc141d2b1d3bf0c8c703","types":"./index.d.ts","_id":"read-pkg@10.1.0","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_nodeVersion":"25.6.0","_npmVersion":"11.8.0","dist":{"shasum":"eff31c7e505a4995a85c5af017b3dc413745431c","size":2559,"noattachment":false,"key":"/read-pkg/-/read-pkg-10.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-10.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/read-pkg_10.1.0_1770561034778_0.6143302387278453"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-08T14:30:34.915Z","publish_time":1770561034915,"_source_registry_name":"default","_cnpm_publish_time":1770561034915},"10.0.0":{"name":"read-pkg","version":"10.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && cd test && node --test test.js"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.4","normalize-package-data":"^8.0.0","parse-json":"^8.3.0","type-fest":"^5.2.0","unicorn-magic":"^0.3.0"},"devDependencies":{"xo":"^1.2.3"},"gitHead":"13f8a65b8db5719fb69af189c65a0be487a373c5","types":"./index.d.ts","_id":"read-pkg@10.0.0","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_nodeVersion":"22.21.1","_npmVersion":"11.6.1","dist":{"shasum":"06401f0331115e9fba9880cb3f2ae1efa3db00e4","size":2587,"noattachment":false,"key":"/read-pkg/-/read-pkg-10.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-10.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/read-pkg_10.0.0_1762538841486_0.5202895380043795"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-07T18:07:21.696Z","publish_time":1762538841696,"_source_registry_name":"default","_cnpm_publish_time":1762538841696},"9.0.1":{"name":"read-pkg","version":"9.0.1","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && tsd && cd test && ava"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.3","normalize-package-data":"^6.0.0","parse-json":"^8.0.0","type-fest":"^4.6.0","unicorn-magic":"^0.1.0"},"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"a3732e2307e6a47d22600fa769debfa557b3690a","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@9.0.1","_nodeVersion":"21.1.0","_npmVersion":"9.2.0","dist":{"shasum":"b1b81fb15104f5dbb121b6bbdee9bbc9739f569b","size":2604,"noattachment":false,"key":"/read-pkg/-/read-pkg-9.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-9.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_9.0.1_1700123965092_0.14740584655552325"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-16T08:39:25.244Z","publish_time":1700123965244,"_source_registry_name":"default","_cnpm_publish_time":1700123965244},"9.0.0":{"name":"read-pkg","version":"9.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=18"},"scripts":{"test":"xo && tsd && cd test && ava"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.3","normalize-package-data":"^6.0.0","parse-json":"^8.0.0","type-fest":"^4.6.0"},"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"896b075b66bc3d410edb9ba52caa5e81569f24b6","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@9.0.0","_nodeVersion":"18.18.2","_npmVersion":"9.2.0","dist":{"shasum":"c8ea8e7405c4cfa2f990515a61207cb85f5258cd","size":2579,"noattachment":false,"key":"/read-pkg/-/read-pkg-9.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-9.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_9.0.0_1698952910175_0.7579687058056632"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-02T19:21:50.347Z","publish_time":1698952910347,"_source_registry_name":"default","_cnpm_publish_time":1698952910347},"8.1.0":{"name":"read-pkg","version":"8.1.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=16"},"scripts":{"test":"xo && tsd && cd test && ava"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.1","normalize-package-data":"^6.0.0","parse-json":"^7.0.0","type-fest":"^4.2.0"},"devDependencies":{"ava":"^5.3.1","tsd":"^0.28.1","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"9ac0a0ff801b2552aa76ddcbb54ad81fd9c2e577","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@8.1.0","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"shasum":"6cf560b91d90df68bce658527e7e3eee75f7c4c7","size":2891,"noattachment":false,"key":"/read-pkg/-/read-pkg-8.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-8.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_8.1.0_1692721562927_0.981990449841061"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-22T16:26:03.107Z","publish_time":1692721563107,"_source_registry_name":"default","_cnpm_publish_time":1692721563107},"8.0.0":{"name":"read-pkg","version":"8.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=16"},"scripts":{"test":"xo && tsd && cd test && ava"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.1","normalize-package-data":"^5.0.0","parse-json":"^7.0.0","type-fest":"^3.8.0"},"devDependencies":{"ava":"^5.2.0","tsd":"^0.28.1","xo":"^0.54.0"},"types":"./index.d.ts","gitHead":"ecfd46f22436765061d94552b4ab33945672276f","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@8.0.0","_nodeVersion":"16.16.0","_npmVersion":"9.2.0","dist":{"shasum":"78b93774c15a3f151b56d5790d5127a5cb9fc507","size":2909,"noattachment":false,"key":"/read-pkg/-/read-pkg-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-8.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_8.0.0_1680845567357_0.5895285081803627"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-07T05:32:47.529Z","publish_time":1680845567529,"_cnpm_publish_time":1680845567529},"7.1.0":{"name":"read-pkg","version":"7.1.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12.20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.1","normalize-package-data":"^3.0.2","parse-json":"^5.2.0","type-fest":"^2.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"xo":{"ignores":["test/test.js"]},"types":"./index.d.ts","gitHead":"f50f5ffd4d5d25ef3387562c2e32e22ba68552dd","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@7.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.2","dist":{"shasum":"438b4caed1ad656ba359b3e00fd094f3c427a43e","size":2453,"noattachment":false,"key":"/read-pkg/-/read-pkg-7.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-7.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_7.1.0_1644301930635_0.565662865120363"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-08T06:32:17.530Z","publish_time":1644301930789,"_cnpm_publish_time":1644301930789},"7.0.0":{"name":"read-pkg","version":"7.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12.20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.1","normalize-package-data":"^3.0.2","parse-json":"^5.2.0","type-fest":"^2.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"xo":{"ignores":["test/test.js"]},"gitHead":"64678dae9f1f2ef8cf9684358a02f3cfaa306609","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@7.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"7009094a9cd58c7efc325d31f1f6cfce1928fa00","size":2388,"noattachment":false,"key":"/read-pkg/-/read-pkg-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_7.0.0_1628984586079_0.8064013372323213"},"_hasShrinkwrap":false,"publish_time":1628984586233,"_cnpm_publish_time":1628984586233},"6.0.0":{"name":"read-pkg","version":"6.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.0","normalize-package-data":"^3.0.2","parse-json":"^5.2.0","type-fest":"^1.0.1"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"xo":{"ignores":["test/test.js"]},"gitHead":"55549f35b4fafbde90de4ca8b2136ad1d4d4dcb5","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@6.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a67a7d6a1c2b0c3cd6aa2ea521f40c458a4a504c","size":2412,"noattachment":false,"key":"/read-pkg/-/read-pkg-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-6.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_6.0.0_1616914942866_0.4955784202910365"},"_hasShrinkwrap":false,"publish_time":1616914942982,"_cnpm_publish_time":1616914942982},"5.2.0":{"name":"read-pkg","version":"5.2.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.0","normalize-package-data":"^2.5.0","parse-json":"^5.0.0","type-fest":"^0.6.0"},"devDependencies":{"ava":"^2.2.0","tsd":"^0.7.2","xo":"^0.24.0"},"xo":{"ignores":["test/test.js"]},"gitHead":"bfe8eb8232af1f1a32143387f909c5140a86e96d","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@5.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7bf295438ca5a33e56cd30e053b34ee7250c93cc","size":2552,"noattachment":false,"key":"/read-pkg/-/read-pkg-5.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-5.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_5.2.0_1562833848277_0.7485102825560606"},"_hasShrinkwrap":false,"publish_time":1562833848441,"_cnpm_publish_time":1562833848441},"5.1.1":{"name":"read-pkg","version":"5.1.1","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.0","normalize-package-data":"^2.5.0","parse-json":"^4.0.0","type-fest":"^0.4.1"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"xo":{"ignores":["test/test.js"]},"gitHead":"7a86b115b300fb4f4fae392376bb2a389910bc45","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@5.1.1","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5cf234dde7a405c90c88a519ab73c467e9cb83f5","size":2343,"noattachment":false,"key":"/read-pkg/-/read-pkg-5.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-5.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_5.1.1_1556360879551_0.3519375135267959"},"_hasShrinkwrap":false,"publish_time":1556360879808,"_cnpm_publish_time":1556360879808},"5.1.0":{"name":"read-pkg","version":"5.1.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["json","read","parse","file","fs","graceful","load","package","normalize"],"dependencies":{"@types/normalize-package-data":"^2.4.0","normalize-package-data":"^2.5.0","parse-json":"^4.0.0","type-fest":"^0.4.1"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"xo":{"ignores":["test/test.js"]},"gitHead":"1270befff80a3b56c072240e0a2e13441c2c96a6","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@5.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"62b924384c4525a1a7a96e2d456b80df142b4390","size":2343,"noattachment":false,"key":"/read-pkg/-/read-pkg-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-5.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_5.1.0_1556078599020_0.9195486751037258"},"_hasShrinkwrap":false,"publish_time":1556078599376,"_cnpm_publish_time":1556078599376},"5.0.0":{"name":"read-pkg","version":"5.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["json","read","parse","file","fs","graceful","load","pkg","package","normalize"],"dependencies":{"normalize-package-data":"^2.3.2","parse-json":"^4.0.0"},"devDependencies":{"ava":"^1.3.1","xo":"^0.24.0"},"xo":{"ignores":["test/test.js"]},"gitHead":"51a942906b0556cdcf83508fbf5f100dce0c4cea","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@5.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"75449907ece8dfb89cbc76adcba2665316e32b94","size":1956,"noattachment":false,"key":"/read-pkg/-/read-pkg-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_5.0.0_1552217844129_0.23799943554602554"},"_hasShrinkwrap":false,"publish_time":1552217844281,"_cnpm_publish_time":1552217844281},"4.0.1":{"name":"read-pkg","version":"4.0.1","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load","pkg","package","normalize"],"dependencies":{"normalize-package-data":"^2.3.2","parse-json":"^4.0.0","pify":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"03b601f9f47a8c9930bbbb46380264babe987ced","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@4.0.1","_shasum":"963625378f3e1c4d48c85872b5a6ec7d5d093237","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"963625378f3e1c4d48c85872b5a6ec7d5d093237","size":1992,"noattachment":false,"key":"/read-pkg/-/read-pkg-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-4.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_4.0.1_1529986259277_0.9099218668326017"},"_hasShrinkwrap":false,"publish_time":1529986259370,"_cnpm_publish_time":1529986259370},"4.0.0":{"name":"read-pkg","version":"4.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load","pkg","package","normalize"],"dependencies":{"normalize-package-data":"^2.3.2","parse-json":"^4.0.0","util.promisify":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"8f30e19a5359111660e65d428d571ec4340814ae","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@4.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ee3801906504d73af4c9630ab1cd0cea8232e5c2","size":1987,"noattachment":false,"key":"/read-pkg/-/read-pkg-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg_4.0.0_1529942790299_0.382594879990501"},"_hasShrinkwrap":false,"publish_time":1529942790381,"_cnpm_publish_time":1529942790381},"3.0.0":{"name":"read-pkg","version":"3.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load","pkg","package","normalize"],"dependencies":{"load-json-file":"^4.0.0","normalize-package-data":"^2.3.2","path-type":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"7eb2f6b7b50618c28f1bf2db8b895a453552cd9c","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@3.0.0","_shasum":"9cbc686978fee65d16c00e2b19c237fcf6e38389","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9cbc686978fee65d16c00e2b19c237fcf6e38389","size":2040,"noattachment":false,"key":"/read-pkg/-/read-pkg-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg-3.0.0.tgz_1509782852512_0.4451334576588124"},"directories":{},"publish_time":1509782852640,"_hasShrinkwrap":false,"_cnpm_publish_time":1509782852640},"2.0.0":{"name":"read-pkg","version":"2.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load","pkg","package","normalize"],"dependencies":{"load-json-file":"^2.0.0","normalize-package-data":"^2.3.2","path-type":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"c1664a2f42d1f1898b7648534576e6dcfa1f48c8","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@2.0.0","_shasum":"8ef1c0623c6a6db0dc6713c4bfac46332b2368f8","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8ef1c0623c6a6db0dc6713c4bfac46332b2368f8","size":2062,"noattachment":false,"key":"/read-pkg/-/read-pkg-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/read-pkg-2.0.0.tgz_1475052271222_0.4820629544556141"},"directories":{},"publish_time":1475052271441,"_cnpm_publish_time":1475052271441,"_hasShrinkwrap":false},"1.1.0":{"name":"read-pkg","version":"1.1.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/read-pkg"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load","pkg","package","normalize"],"dependencies":{"load-json-file":"^1.0.0","normalize-package-data":"^2.3.2","path-type":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"9448d32b2ebcd65fc0547def3cfe5b28ef522e68","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg","_id":"read-pkg@1.1.0","_shasum":"f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28","size":2074,"noattachment":false,"key":"/read-pkg/-/read-pkg-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441446710133,"_cnpm_publish_time":1441446710133,"_hasShrinkwrap":false},"1.0.0":{"name":"read-pkg","version":"1.0.0","description":"Read a package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load","pkg","package","normalize"],"dependencies":{"load-json-file":"^1.0.0","normalize-package-data":"^2.3.2"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"1ed9e57e3048285289547ea375eb7a5adabed1c4","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"homepage":"https://github.com/sindresorhus/read-pkg#readme","_id":"read-pkg@1.0.0","_shasum":"6199b5a0a9596f32eb83044e89400969587542de","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6199b5a0a9596f32eb83044e89400969587542de","size":2009,"noattachment":false,"key":"/read-pkg/-/read-pkg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-pkg/download/read-pkg-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441183671680,"_cnpm_publish_time":1441183671680,"_hasShrinkwrap":false}},"readme":"# read-pkg\n\n> Read a package.json file\n\n## Why\n\n- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json)\n- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails)\n\n## Install\n\n```sh\nnpm install read-pkg\n```\n\n## Usage\n\n```js\nimport {readPackage} from 'read-pkg';\n\nconsole.log(await readPackage());\n//=> {name: 'read-pkg', …}\n\nconsole.log(await readPackage({cwd: 'some-other-directory'}));\n//=> {name: 'unicorn', …}\n```\n\n## API\n\n### readPackage(options?)\n\nReturns a `Promise<object>` with the parsed JSON.\n\n### readPackageSync(options?)\n\nReturns the parsed JSON.\n\n#### options\n\nType: `object`\n\n##### cwd\n\nType: `URL | string`\\\nDefault: `process.cwd()`\n\nCurrent working directory.\n\n##### normalize\n\nType: `boolean`\\\nDefault: `true`\n\n[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.\n\n### parsePackage(packageFile, options?)\n\nParses an object or string into JSON.\n\n#### packageFile\n\nType: `object | string`\n\nAn object or a stringified object to be parsed as a package.json.\n\n#### options\n\nType: `object`\n\n##### normalize\n\nType: `boolean`\\\nDefault: `true`\n\n[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.\n\n## Related\n\n- [read-package-up](https://github.com/sindresorhus/read-package-up) - Read the closest package.json file\n- [write-package](https://github.com/sindresorhus/write-package) - Write a `package.json` file\n- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file\n","_attachments":{},"homepage":"https://github.com/sindresorhus/read-pkg#readme","bugs":{"url":"https://github.com/sindresorhus/read-pkg/issues"},"license":"MIT"}