{"name":"fetch-from-npm-registry","version":"3.0.0","description":"A fetch lib specifically for using with the npm registry","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=10"},"scripts":{"lint":"tslint -c tslint.json src/**/*.ts test/**/*.ts","tsc":"rimraf lib && tsc","test":"pnpm run tsc && pnpm run lint && ts-node test --type-check","prepublishOnly":"pnpm run tsc"},"repository":{"type":"git","url":"https://github.com/pnpm/pnpm/blob/master/packages/fetch-from-npm-registry"},"keywords":["fetch","npm"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"homepage":"https://github.com/pnpm/pnpm/blob/master/packages/fetch-from-npm-registry#readme","dependencies":{"@pnpm/fetch":"1.0.1","@pnpm/npm-registry-agent":"2.0.0"},"devDependencies":{"fetch-from-npm-registry":"link:","nock":"11.7.0","rimraf":"3.0.0","tape":"4.11.0"},"_id":"fetch-from-npm-registry@3.0.0","_nodeVersion":"12.11.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-Qx0jd109fNB2R9EF/VcUlshruht2Musb9zqobMFEKO+0vuLVuR1RpxByqZdPdaK5jQ48T3p0GJ5IbSM8uGtgHA==","shasum":"c804b4ae9064941e3b1def0aeea4802f0a3c67a7","tarball":"http://registry-npm.ywwl.com/fetch-from-npm-registry/download/fetch-from-npm-registry-3.0.0.tgz","fileCount":5,"unpackedSize":7952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzYAOCRA9TVsSAnZWagAABIAP/RjAHbAqgkaVyPwyDxrT\n9ziA2QRmo9fG3/XuUcw7RWamEV15YAZXkF5ihA+vEPkVsWFu1UPct6sTXD+a\n5DeH9NrGjY2uPyx6kbedzRuq/pg51YMwBWyGbLul2W6QltORlRGqeFpvEKP3\n7hOafwiedvXYUwHzCqd68RqmiTisP81otmN17jAlLG26FWkgQEYfKUqFxQAC\n0hNv+gs76UmZDlfx2cEijxt4tJbrZFzCup0QMtGP3fKxJ8v8o04vNVsYDOcS\n0vKP8lpFyGVHiMUFcb9LowgyWiEBsupVw2DQ5KIq/LV+3qC+B66hxiedkYoy\nxJ2uH+ioNyTqAM1iv/C76Uq3ZJdlNFGitWtxKsKufd2nkAkms5C8BwAsi09+\nMxQMCNATbjttmy357gxHu0BTgmQTZBeQlAjiOanWG1p+6mmFxDgUZqkIfTnl\nambrMSA4zCA9JREaPGN4Dmmivz2L4NVB/S1gboLOFbHSSoScmyYd71OkrvcC\nhnicwZwtWjcyQtRTkfwdYtu9KHwvw8B7cNxdvjoQiPUC93QJhQfZxo09hW20\n/YB+A095EObE2vlXoV6bL42I17rjOdydQdFLO2k0ObKSaETbde1BOq2JXuhl\nBJN9Ni9T04cAqKziDXvKObIBhJtZVj3+TCczCtoChtQocOYRcqhOJkp6HMcF\nlFwR\r\n=Op1j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwszhBvKmAjBzltb9nKFCEpcewiIFWRUqi9TADoUETYAIgP3ncldaQjrkbl5nJQ62qKkPMRe370UqHlWZ1r6/caUg="}],"size":3328,"noattachment":false,"key":"/fetch-from-npm-registry/-/fetch-from-npm-registry-3.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-from-npm-registry_3.0.0_1573748749465_0.34602842656677035"},"_hasShrinkwrap":false,"readme":"# fetch-from-npm-registry\n\n> A fetch lib specifically for using with the npm registry\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/fetch-from-npm-registry.svg)](https://www.npmjs.com/package/fetch-from-npm-registry)\n<!--/@-->\n\n## Installation\n\n```sh\n<pnpm|npm|yarn> add fetch-from-npm-registry\n```\n\n## Usage\n\n<!--@example('./example.js')-->\n```js\n'use strict'\nconst createFetcher = require('fetch-from-npm-registry').default\n\nconst fetchFromNpmRegistry = createFetcher({userAgent: 'fetch-from-npm-registry'})\n\nfetchFromNpmRegistry('https://registry.npmjs.org/is-positive')\n  .then(res => res.json())\n  .then(metadata => console.log(JSON.stringify(metadata.versions['1.0.0'], null, 2)))\n  //> {\n  //    \"name\": \"is-positive\",\n  //    \"version\": \"1.0.0\",\n  //    \"devDependencies\": {\n  //      \"ava\": \"^0.0.4\"\n  //    },\n  //    \"_hasShrinkwrap\": false,\n  //    \"directories\": {},\n  //    \"dist\": {\n  //      \"shasum\": \"88009856b64a2f1eb7d8bb0179418424ae0452cb\",\n  //      \"tarball\": \"https://registry.npmjs.org/is-positive/-/is-positive-1.0.0.tgz\"\n  //    },\n  //    \"engines\": {\n  //      \"node\": \">=0.10.0\"\n  //    }\n  //  }\n```\n<!--/@-->\n\n## API\n\n### `fetchFromNpmRegistry(url, opts)`\n\n#### Arguments\n\n- **url** - _String_ - url to request\n- **opts.fullMetadata** - _Boolean_ - If true, don't attempt to fetch filtered (\"corgi\") registry metadata. (default: false)\n\n## License\n\nMIT © [Zoltan Kochan](https://www.kochan.io/)\n","publish_time":1573748750352,"_cnpm_publish_time":1573748750352,"dist-tags":{"latest":"4.1.2","next":"2.0.0-0","pnpm-temp":"4.1.2"}}