pnpm
Version:
Fast, disk space efficient package manager
129 lines (128 loc) • 6.01 kB
JSON
{
"_args": [
[
{
"raw": "fetch-from-npm-registry@2.0.1",
"scope": null,
"escapedName": "fetch-from-npm-registry",
"name": "fetch-from-npm-registry",
"rawSpec": "2.0.1",
"spec": "2.0.1",
"type": "version"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/tarball-fetcher"
]
],
"_from": "fetch-from-npm-registry@2.0.1",
"_hasShrinkwrap": false,
"_id": "fetch-from-npm-registry@2.0.1",
"_location": "/fetch-from-npm-registry",
"_nodeVersion": "10.12.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/fetch-from-npm-registry_2.0.1_1552178261233_0.19037741237166084"
},
"_npmUser": {
"name": "zkochan",
"email": "z@kochan.io"
},
"_npmVersion": "6.9.0",
"_phantomChildren": {},
"_requested": {
"raw": "fetch-from-npm-registry@2.0.1",
"scope": null,
"escapedName": "fetch-from-npm-registry",
"name": "fetch-from-npm-registry",
"rawSpec": "2.0.1",
"spec": "2.0.1",
"type": "version"
},
"_requiredBy": [
"/@pnpm/npm-resolver",
"/@pnpm/tarball-fetcher"
],
"_resolved": "https://registry.npmjs.org/fetch-from-npm-registry/-/fetch-from-npm-registry-2.0.1.tgz",
"_shasum": "07d7209ad891f9b7c0405ca4a0c321a7876e614f",
"_shrinkwrap": null,
"_spec": "fetch-from-npm-registry@2.0.1",
"_where": "/home/zoltan/src/pnpm/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/pnpm/issues"
},
"dependencies": {
"@pnpm/fetch": "1.0.0",
"@pnpm/npm-registry-agent": "1.0.1",
"@types/node": "11.9.5"
},
"description": "A fetch lib specifically for using with the npm registry",
"devDependencies": {
"@pnpm/tslint-config": "0.0.0",
"@types/tape": "^4.2.31",
"fetch-from-npm-registry": "link:",
"mos": "^2.0.0-alpha.3",
"mos-plugin-readme": "^1.0.4",
"rimraf": "^2.6.2",
"tape": "4.10.1",
"ts-node": "8.0.3",
"tslint": "5.13.1",
"typescript": "3.3.3333"
},
"directories": {},
"dist": {
"integrity": "sha512-HA8Swju9EJUYV9HSVjH+6RtfRs+pVJkZ2BJpAIx4aGIAhWS7tYXojL7VRNvGijBCfdbT1s5MdgQZ9otnNuMoPw==",
"shasum": "07d7209ad891f9b7c0405ca4a0c321a7876e614f",
"tarball": "https://registry.npmjs.org/fetch-from-npm-registry/-/fetch-from-npm-registry-2.0.1.tgz",
"fileCount": 6,
"unpackedSize": 8982,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchFxVCRA9TVsSAnZWagAAfDQP/Rm1duB66LUaVXim8Evj\nTto0MLFAg/1lh/aWuPpTNlMY75njcHDsatJzx5dB4pF4kvoasi67X2o1L5Ip\nAN9ImzoxSwtXpidzAhFKH+VTceFBiGeqoVMstOH62IwnYv6Hm2vXGTvaVDQD\nR96s0yzPBiC4W4C/iI7JN50B2m0+BQVo9ExdT17zXuMiBLW9i31gVjXprJ9E\nXnIXuNMxqmz2/Sfb3zLKCPXUDWWuB/vSWVUzYa49ZQCfACyHaHCxRptUCdNl\nGpKUCPlxQgNwAPOsymgj6ZpkQcUItVmZAzWhnYHkoQeRE1gMz5wBp7NeiMeW\nKmKnxh27p5nIm6KsHCg8NhSbWbOBTXSWeF3w879ChithXLwNGBw7/LTpJLUK\nuIVHOutxRfu9ndAco6Varm6mylGPRVUuHkkrHPBHWc8DXum6HfpgxuJ9tB5I\ncp/MVGnusxPNTwa/gkvjf7iAQDb8gPn086Coke/kF9+1LqUfKuMSP2T1IcMD\nTjC4PTJakktygBQ1DDLu6JtvLPpRYT90EAGAcN40OZOvxo0EnkGwzXNSdLC/\nXHG5C1orHFSOf4A6WAwG8hgrfrETOgJkTTzHWrQQZweWvNkNA3xiK9Rbf/5q\niJNmN4LQQhz7QLspHGMYg8AoheA8MQynSiVAm8e3r70KzpxnKa4+EqIpsYUo\nqVzl\r\n=Ltgg\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=8"
},
"files": [
"lib"
],
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/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')-->\n[](https://www.npmjs.com/package/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": "https://github.com/pnpm/pnpm/blob/master/packages/fetch-from-npm-registry"
},
"scripts": {
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts",
"md": "mos",
"prepublishOnly": "npm run tsc",
"test": "npm run tsc && npm run lint && ts-node test --type-check && mos t",
"tsc": "rimraf lib && tsc"
},
"typings": "lib/index.d.ts",
"version": "2.0.1"
}