UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

117 lines (116 loc) 4.02 kB
{ "_args": [ [ { "raw": "parse-npm-tarball-url@^1.0.3", "scope": null, "escapedName": "parse-npm-tarball-url", "name": "parse-npm-tarball-url", "rawSpec": "^1.0.3", "spec": ">=1.0.3 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/npm-resolver" ] ], "_from": "parse-npm-tarball-url@>=1.0.3 <2.0.0", "_id": "parse-npm-tarball-url@1.0.3", "_inCache": true, "_location": "/parse-npm-tarball-url", "_nodeVersion": "6.11.4", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/parse-npm-tarball-url_1.0.3_1518257640918_0.7633013350573106" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "parse-npm-tarball-url@^1.0.3", "scope": null, "escapedName": "parse-npm-tarball-url", "name": "parse-npm-tarball-url", "rawSpec": "^1.0.3", "spec": ">=1.0.3 <2.0.0", "type": "range" }, "_requiredBy": [ "/@pnpm/npm-resolver" ], "_resolved": "https://registry.npmjs.org/parse-npm-tarball-url/-/parse-npm-tarball-url-1.0.3.tgz", "_shasum": "aae7b9d35d480f6d445b4d1993fc8fd4014294b7", "_shrinkwrap": null, "_spec": "parse-npm-tarball-url@^1.0.3", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/npm-resolver", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io", "url": "https://www.kochan.io/" }, "bugs": { "url": "https://github.com/pnpm/parse-npm-tarball-url/issues" }, "dependencies": { "@types/node": "^9.4.4", "semver-regex": "^1.0.0" }, "description": "Parse a tarball URL hosted in the npm registry", "devDependencies": { "@types/tape": "^4.2.29", "package-preview": "^1.0.5", "rimraf": "^2.6.2", "tape": "^4.6.3", "ts-node": "^4.0.0", "tslint": "^5.0.0", "typescript": "^2.1.6" }, "directories": {}, "dist": { "integrity": "sha512-LNiNoG41t4SeUu3p8aEpQatMVbfLxc600UD0urKMz09vHzz2+w0nWLs6k8rnk5eZ1tpCNkMzaMAzFTsNWMrIWg==", "shasum": "aae7b9d35d480f6d445b4d1993fc8fd4014294b7", "tarball": "https://registry.npmjs.org/parse-npm-tarball-url/-/parse-npm-tarball-url-1.0.3.tgz", "fileCount": 6, "unpackedSize": 5839 }, "engines": { "node": ">=4" }, "files": [ "lib" ], "gitHead": "ffd9fefe7defb7b4c75f9fd223e7f0913f433eb9", "homepage": "https://github.com/pnpm/parse-npm-tarball-url#readme", "keywords": [ "npm", "parse", "url", "tarball" ], "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "zkochan", "email": "zoltan.kochan@gmail.com" } ], "name": "parse-npm-tarball-url", "optionalDependencies": {}, "readme": "# parse-npm-tarball-url\n\n[![Build Status](https://travis-ci.org/pnpm/parse-npm-tarball-url.svg?branch=master)](https://travis-ci.org/pnpm/parse-npm-tarball-url)\n\n> Parse a tarball URL hosted in the npm registry\n\n## Installation\n\n```\nnpm i -S parse-npm-tarball-url\n```\n\n## Usage\n\n```js\nimport parseNpmTarbalUrl from 'parse-npm-tarball-url'\n\nconst spec = parseNpmTarbalUrl('http://registry.npmjs.org/foo/-/foo-1.0.0.tgz')\n\nconsole.log(spec)\n// {\n// host: 'registry.npmjs.org',\n// pkg: {\n// name: 'foo',\n// version: '1.0.0'\n// }\n// }\n```\n\n## Related\n\n- [get-npm-tarball-url](https://github.com/pnpm/get-npm-tarball-url) - Create the tarball URL of a npm package\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/parse-npm-tarball-url.git" }, "scripts": { "lint": "tslint -c tslint.json --project .", "prepublishOnly": "npm run tsc", "test": "npm run lint && preview && ts-node test --type-check", "tsc": "rimraf lib && tsc" }, "typings": "lib/index.d.ts", "version": "1.0.3" }