{
  "_args": [
    [
      {
        "raw": "package-json@^2.0.0",
        "scope": null,
        "escapedName": "package-json",
        "name": "package-json",
        "rawSpec": "^2.0.0",
        "spec": ">=2.0.0 <3.0.0",
        "type": "range"
      },
      "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/latest-version"
    ]
  ],
  "_from": "package-json@>=2.0.0 <3.0.0",
  "_id": "package-json@2.4.0",
  "_inCache": true,
  "_location": "/npm-check-updates/package-json",
  "_nodeVersion": "4.5.0",
  "_npmOperationalInternal": {
    "host": "packages-12-west.internal.npmjs.com",
    "tmp": "tmp/package-json-2.4.0.tgz_1472158723527_0.22724637226201594"
  },
  "_npmUser": {
    "name": "sindresorhus",
    "email": "sindresorhus@gmail.com"
  },
  "_npmVersion": "2.15.9",
  "_phantomChildren": {},
  "_requested": {
    "raw": "package-json@^2.0.0",
    "scope": null,
    "escapedName": "package-json",
    "name": "package-json",
    "rawSpec": "^2.0.0",
    "spec": ">=2.0.0 <3.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/npm-check-updates/latest-version"
  ],
  "_resolved": "https://registry.npmjs.org/package-json/-/package-json-2.4.0.tgz",
  "_shasum": "0d15bd67d1cbbddbb2ca222ff2edb86bcb31a8bb",
  "_shrinkwrap": null,
  "_spec": "package-json@^2.0.0",
  "_where": "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/latest-version",
  "author": {
    "name": "Sindre Sorhus",
    "email": "sindresorhus@gmail.com",
    "url": "sindresorhus.com"
  },
  "bugs": {
    "url": "https://github.com/sindresorhus/package-json/issues"
  },
  "dependencies": {
    "got": "^5.0.0",
    "registry-auth-token": "^3.0.1",
    "registry-url": "^3.0.3",
    "semver": "^5.1.0"
  },
  "description": "Get the package.json of a package from the npm registry",
  "devDependencies": {
    "ava": "*",
    "mock-private-registry": "^1.1.0",
    "xo": "*"
  },
  "directories": {},
  "dist": {
    "shasum": "0d15bd67d1cbbddbb2ca222ff2edb86bcb31a8bb",
    "tarball": "https://registry.npmjs.org/package-json/-/package-json-2.4.0.tgz"
  },
  "engines": {
    "node": ">=0.10.0"
  },
  "files": [
    "index.js"
  ],
  "gitHead": "2e77257cec7604cf18d979b1d5c4baa46928d24d",
  "homepage": "https://github.com/sindresorhus/package-json#readme",
  "keywords": [
    "npm",
    "registry",
    "package",
    "pkg",
    "package.json",
    "json",
    "module",
    "scope",
    "scoped"
  ],
  "license": "MIT",
  "maintainers": [
    {
      "name": "sindresorhus",
      "email": "sindresorhus@gmail.com"
    }
  ],
  "name": "package-json",
  "optionalDependencies": {},
  "readme": "# package-json [![Build Status](https://travis-ci.org/sindresorhus/package-json.svg?branch=master)](https://travis-ci.org/sindresorhus/package-json)\n\n> Get the package.json of a package from the npm registry\n\n\n## Install\n\n```\n$ npm install --save package-json\n```\n\n\n## Usage\n\n```js\nconst packageJson = require('package-json');\n\npackageJson('pageres', 'latest').then(json => {\n\tconsole.log(json);\n\t//=> {name: 'pageres', ...}\n});\n\n// also works with scoped packages\npackageJson('@company/package', 'latest').then(json => {\n\tconsole.log(json);\n\t//=> {name: 'package', ...}\n});\n```\n\n\n## API\n\n### packageJson(name, [version])\n\nYou can optionally specify a version (e.g. `1.0.0`) or `latest`.  \nIf you don't specify a version you'll get the [main entry](http://registry.npmjs.org/pageres/) containing all versions.\n\nThe version can also be in any format supported by the [semver](https://www.npmjs.com/package/semver) module. For example:\n\n- `1` - get the latest `1.x.x`\n- `1.2` - get the latest `1.2.x`\n- `^1.2.3` - get the latest `1.x.x` but at least `1.2.3`\n- `~1.2.3` - get the latest `1.2.x` but at least `1.2.3`\n\n\n## Authentication\n\nBoth public and private registries are supported, for both scoped and unscoped packages, as long as the registry uses either bearer tokens or basic authentication.\n\n\n## Related\n\n- [package-json-cli](https://github.com/sindresorhus/package-json-cli) - CLI for this module\n- [latest-version](https://github.com/sindresorhus/latest-version) - Get the latest version of an npm package\n- [pkg-versions](https://github.com/sindresorhus/pkg-versions) - Get the version numbers of a package from the npm registry\n- [npm-keyword](https://github.com/sindresorhus/npm-keyword) - Get a list of npm packages with a certain keyword\n- [npm-user](https://github.com/sindresorhus/npm-user) - Get user info of an npm user\n- [npm-email](https://github.com/sindresorhus/npm-email) - Get the email of an npm user\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sindresorhus/package-json.git"
  },
  "scripts": {
    "test": "xo && ava"
  },
  "version": "2.4.0"
}
