UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

128 lines (127 loc) 6.09 kB
{ "_args": [ [ { "raw": "fetch-from-npm-registry@1.0.0", "scope": null, "escapedName": "fetch-from-npm-registry", "name": "fetch-from-npm-registry", "rawSpec": "1.0.0", "spec": "1.0.0", "type": "version" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/tarball-fetcher" ] ], "_from": "fetch-from-npm-registry@1.0.0", "_id": "fetch-from-npm-registry@1.0.0", "_inCache": true, "_location": "/fetch-from-npm-registry", "_nodeVersion": "9.10.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/fetch-from-npm-registry_1.0.0_1526241527134_0.041118735340269996" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "6.0.1", "_phantomChildren": {}, "_requested": { "raw": "fetch-from-npm-registry@1.0.0", "scope": null, "escapedName": "fetch-from-npm-registry", "name": "fetch-from-npm-registry", "rawSpec": "1.0.0", "spec": "1.0.0", "type": "version" }, "_requiredBy": [ "/@pnpm/npm-resolver", "/@pnpm/tarball-fetcher" ], "_resolved": "https://registry.npmjs.org/fetch-from-npm-registry/-/fetch-from-npm-registry-1.0.0.tgz", "_shasum": "048b7f82b81c509dc1ae6ee83c84a0f0cb27c2b4", "_shrinkwrap": null, "_spec": "fetch-from-npm-registry@1.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/tarball-fetcher", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io", "url": "https://www.kochan.io/" }, "bugs": { "url": "https://github.com/pnpm/fetch-from-npm-registry/issues" }, "dependencies": { "@types/node": "^9.4.4 || 10", "make-fetch-happen": "^4.0.0" }, "description": "A fetch lib specifically for using with the npm registry", "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" }, "directories": {}, "dist": { "integrity": "sha512-OE2YP41olwhvjOFxaAPzMOK+ZBoMIMqZfyqdmQ7Jaxk9CgKnnDcMr/wcNozumtZzUjavYUhKkI5lD6JK/+ATFg==", "shasum": "048b7f82b81c509dc1ae6ee83c84a0f0cb27c2b4", "tarball": "https://registry.npmjs.org/fetch-from-npm-registry/-/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" }, "engines": { "node": ">=6" }, "files": [ "lib" ], "gitHead": "de78d2b015425fdab5edfbcf17b0538ab0ca8fae", "homepage": "https://github.com/pnpm/fetch-from-npm-registry#readme", "keywords": [ "fetch", "npm" ], "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "zkochan", "email": "z@kochan.io" } ], "mos": { "plugins": [ "readme" ], "installation": { "useShortAlias": true } }, "name": "fetch-from-npm-registry", "optionalDependencies": {}, "readme": "# fetch-from-npm-registry\n\n> A fetch lib specifically for using with the npm registry\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/fetch-from-npm-registry.svg)](https://www.npmjs.com/package/fetch-from-npm-registry) [![Build Status](https://img.shields.io/travis/pnpm/fetch-from-npm-registry/master.svg)](https://travis-ci.org/pnpm/fetch-from-npm-registry)\n<!--/@-->\n\n## Installation\n\n```sh\nnpm i -S 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\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/pnpm/fetch-from-npm-registry.git" }, "scripts": { "lint": "tslint -c tslint.json --project .", "md": "mos", "prepublishOnly": "npm run tsc", "test": "npm run lint && preview && ts-node test --type-check && mos t", "tsc": "rimraf lib && tsc" }, "typings": "lib/index.d.ts", "version": "1.0.0" }