{"_id":"@akepinski/package-json","_rev":"1-9271d1cb1cc5aef53161649299aa2b77","name":"@akepinski/package-json","dist-tags":{"latest":"6.5.0"},"versions":{"6.5.0":{"name":"@akepinski/package-json","version":"6.5.0","description":"package-json without got and semver","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/package-json.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["npm","registry","package","pkg","package.json","json","module","scope","scoped"],"dependencies":{"node-fetch":"^2.6.1","registry-auth-token":"^4.2.1","registry-url":"^5.1.0","semver":"^7.3.4"},"devDependencies":{"@types/node":"^14.14.22","ava":"^3.15.0","mock-private-registry":"^1.1.2","tsd":"^0.14.0","xo":"^0.37.1"},"xo":{"ignores":["index.d.ts","index.test-d.ts"]},"gitHead":"0df39730cc3ca8cfba9b88a9eda3c7c4a8706a6c","bugs":{"url":"https://github.com/sindresorhus/package-json/issues"},"homepage":"https://github.com/sindresorhus/package-json#readme","_id":"@akepinski/package-json@6.5.0","_nodeVersion":"15.4.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-X801+bR745pnYk2tgFimKWi0wkfAd4/RAZedSB9lKRDJIiEcxkF1v/96i7CUj8AjI6oDY7eaU2N2pFmE136Dww==","shasum":"bcbd15e23003bfd7ad2b42ae2a84bbfb3040b947","tarball":"https://registry.npmjs.org/@akepinski/package-json/-/package-json-6.5.0.tgz","fileCount":5,"unpackedSize":13857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgESQgCRA9TVsSAnZWagAA5jUP/jbEzZUwhCwD9mBFnQH1\nIv3CloPYhlT181+q1JkLr+ulw8PrYtfwVfL9hoCKeryuVxDla0lTQ0OGdkFP\nLNEyq5C9OOftHYexNg3F2I2jtaqmojorteM1pAZkYZlCrV+MjGCpDOJQzzNd\n+4OWiYzlEQ1aaSWATCUGcxMULkI1SFl0oK2QylRXC4q7B5um2le9HA+lJYe7\nZG9+EEK31/SHJYdRMtGZaxSr13ld+RNIpZNMG+nNYZFppYEEMgDsdm4SvioZ\n5bgp9myJyzds2NwGLo+qlEbdW7yhY7qeHomnmFQcX78h9hrL+e5r1dIaNC8L\nR7Ga8nQiVzWhMmqGQMEfOw2E5s3qa74fQJKbgHH0PL0xluAqp478iFstxK4i\ne1eA9o0YUUC7MaUYg6btTH4xhNSBQQ/Qj1ajX55b73ri5w1FcBuOwZm+HzIg\n/mrrldPH4AtvuCd/LNxN0i8/coKsjV5nG4Ukg8YEzld/f7i8xc4Dsumj8k9N\nLKHro/em1ql4CquUbhjOTI5p6aWaGS+RUetZlHHsLcaHU8A21QYuuhpeD6GN\nwzZqPAwBjaSBJP7M7BCR9M8V/6gz9M+zp+JYbf4aAGOeDj0jaUWf5d/8KHq6\ng8hPQ/gIezecmiTGsbsckx0Kj9hoFxjrtJ/CTkEg9rxWb/CmCYRh7YfrxtuE\nbWZb\r\n=YKA1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYLIMO8L1GK7Oag8UXly6+UMUQTkKUJjP2sFvz495cUQIhAIBSGcePZn4SJGXUYehJzsPRXnWxYVzBkILdqWsPqCY7"}]},"_npmUser":{"name":"akepinski","email":"xxczaki@pm.me"},"directories":{},"maintainers":[{"name":"akepinski","email":"xxczaki@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/package-json_6.5.0_1611736095977_0.7368236089678868"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-27T08:28:15.931Z","6.5.0":"2021-01-27T08:28:16.168Z","modified":"2022-04-04T12:29:06.356Z"},"maintainers":[{"name":"akepinski","email":"xxczaki@pm.me"}],"description":"package-json without got and semver","homepage":"https://github.com/sindresorhus/package-json#readme","keywords":["npm","registry","package","pkg","package.json","json","module","scope","scoped"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/package-json.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/package-json/issues"},"license":"MIT","readme":"# package-json\n\n> Get metadata of a package from the npm registry\n\n\n## Install\n\n```\n$ npm install package-json\n```\n\n\n## Usage\n\n```js\nconst packageJson = require('package-json');\n\n(async () => {\n\tconsole.log(await packageJson('ava'));\n\t//=> {name: 'ava', ...}\n\n\t// Also works with scoped packages\n\tconsole.log(await packageJson('@sindresorhus/df'));\n})();\n```\n\n\n## API\n\n### packageJson(packageName, options?)\n\n#### packageName\n\nType: `string`\n\nName of the package.\n\n#### options\n\nType: `object`\n\n##### version\n\nType: `string`<br>\nDefault: `latest`\n\nPackage version such as `1.0.0` or a [dist tag](https://docs.npmjs.com/cli/dist-tag) such as `latest`.\n\nThe version can also be in any format supported by the [semver](https://github.com/npm/node-semver) module. For example:\n\n- `1` - Get the latest `1.x.x`\n- `1.2` - Get the latest `1.2.x`\n- `^1.2.3` - Get the latest `1.x.x` but at least `1.2.3`\n- `~1.2.3` - Get the latest `1.2.x` but at least `1.2.3`\n\n##### fullMetadata\n\nType: `boolean`<br>\nDefault: `false`\n\nBy default, only an abbreviated metadata object is returned for performance reasons. [Read more.](https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md)\n\n##### allVersions\n\nType: `boolean`<br>\nDefault: `false`\n\nReturn the [main entry](https://registry.npmjs.org/ava) containing all versions.\n\n##### registryUrl\n\nType: `string`<br>\nDefault: Auto-detected\n\nThe registry URL is by default inferred from the npm defaults and `.npmrc`. This is beneficial as `package-json` and any project using it will work just like npm. This option is **only** intended for internal tools. You should **not** use this option in reusable packages. Prefer just using `.npmrc` whenever possible.\n\n##### agent\n\nType: `http.Agent | https.Agent | object | false`\n\nOverwrite the `agent` option that is passed down to [`got`](https://github.com/sindresorhus/got#agent). This might be useful to add [proxy support](https://github.com/sindresorhus/got#proxies).\n\n\n### packageJson.PackageNotFoundError\n\nThe error thrown when the given package name cannot be found.\n\n### packageJson.VersionNotFoundError\n\nThe error thrown when the given package version cannot be found.\n\n\n## Authentication\n\nBoth public and private registries are supported, for both scoped and unscoped packages, as long as the registry uses either bearer tokens or basic authentication.\n\n\n## package-json for enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of package-json and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-package-json?utm_source=npm-package-json&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n\n\n## Related\n\n- [package-json-cli](https://github.com/sindresorhus/package-json-cli) - CLI for this module\n- [latest-version](https://github.com/sindresorhus/latest-version) - Get the latest version of an npm package\n- [pkg-versions](https://github.com/sindresorhus/pkg-versions) - Get the version numbers of a package from the npm registry\n- [npm-keyword](https://github.com/sindresorhus/npm-keyword) - Get a list of npm packages with a certain keyword\n- [npm-user](https://github.com/sindresorhus/npm-user) - Get user info of an npm user\n- [npm-email](https://github.com/sindresorhus/npm-email) - Get the email of an npm user\n","readmeFilename":"readme.md"}