{"name":"fetch-from-npm-registry","version":"1.0.0","description":"A fetch lib specifically for using with the npm registry","main":"lib/index.js","typings":"lib/index.d.ts","files":["lib"],"engines":{"node":">=6"},"scripts":{"lint":"tslint -c tslint.json --project .","tsc":"rimraf lib && tsc","test":"npm run lint && preview && ts-node test --type-check && mos t","md":"mos","prepublishOnly":"npm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/fetch-from-npm-registry.git"},"keywords":["fetch","npm"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/fetch-from-npm-registry/issues"},"homepage":"https://github.com/pnpm/fetch-from-npm-registry#readme","dependencies":{"@types/node":"^9.4.4 || 10","make-fetch-happen":"^4.0.0"},"devDependencies":{"@types/tape":"^4.2.31","mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"^1.0.1","rimraf":"^2.6.2","tape":"^4.8.0","ts-node":"^6.0.0","tslint":"^5.8.0","typescript":"^2.6.1"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"gitHead":"de78d2b015425fdab5edfbcf17b0538ab0ca8fae","_id":"fetch-from-npm-registry@1.0.0","_npmVersion":"6.0.1","_nodeVersion":"9.10.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-OE2YP41olwhvjOFxaAPzMOK+ZBoMIMqZfyqdmQ7Jaxk9CgKnnDcMr/wcNozumtZzUjavYUhKkI5lD6JK/+ATFg==","shasum":"048b7f82b81c509dc1ae6ee83c84a0f0cb27c2b4","tarball":"http://registry-npm.ywwl.com/fetch-from-npm-registry/download/fetch-from-npm-registry-1.0.0.tgz","fileCount":6,"unpackedSize":8806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+Jj4CRA9TVsSAnZWagAAVKUP/0B9sWuZcQpnhBPxyQaR\nP8Ya5kNzG4wsfdoLLNqySq3kR9b8sS+316RZRdmWvUAtR8qia6YzRmgPGNBW\nqWAd7DecaLdDd1UbmEtQh6nZFsvAkab6Sitl6ETrsE0KpDxCLLnEjX3Vaxtw\nb/VdBJdNu8kL6gIEneMSodN6TPR29Pq22jU6A2AcdP9v2ONc2T7nLl0GSy9M\ncrFZjhU4SxL/6ciz1l8BYtDfGzSljAo8Qtt6/daMAo3F6/qPkgie/fWTD7CZ\nOJBd/2OEvf3+v5yO1OW8LovEGgpU7H5W/HZIRyy1OXYrxcbJ1CreqLyEZA6k\nlQzySHMmtnYaBAXh0DJFl/bC0lS5vBQp6198SbGZR/p1T/81jDjltUFOOpP7\n2GayXot/cno1z1Pp6L7q3IQt1ZMmsr6RfqW44vy09EMT+lLiJvZbyU+xPsgQ\nd62jX6YelB92I18/BIuIu35bzgbkoZxv+p4KBxsERTYx2uhJzNkJj1B9ASLz\n3+pxEnpto51vgjNzo9QuJAawTQocquCi3n4qELStJZ5LBEtAkHLKcRRTX5cN\nOrJJ2PBZ5ribursGGsRe3yA5v1P28R8EBUTHf8xIVHpVId1ixUSB6J0tMNpt\n7cSWqEdO/DomEHYDr4a464rK79XSNtAS4fLubQYTlKsEycIrSWf/WeMGVuI+\ncqhi\r\n=GLNE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzdQm3U1Sxc0y+reDrJzeTEEH5pp17Zd491ZIkbMh+CAiAWFNQUd/aYtJLmE64Z2H418zyc+1vPU/7ji9g4MhQaWw=="}],"size":3570,"noattachment":false,"key":"/fetch-from-npm-registry/-/fetch-from-npm-registry-1.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-from-npm-registry_1.0.0_1526241527134_0.041118735340269996"},"_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":1526241527213,"_cnpm_publish_time":1526241527213,"dist-tags":{"latest":"4.1.2","next":"2.0.0-0","pnpm-temp":"4.1.2"}}