{
  "_args": [
    [
      {
        "raw": "registry-auth-token@^3.0.1",
        "scope": null,
        "escapedName": "registry-auth-token",
        "name": "registry-auth-token",
        "rawSpec": "^3.0.1",
        "spec": ">=3.0.1 <4.0.0",
        "type": "range"
      },
      "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/package-json"
    ]
  ],
  "_from": "registry-auth-token@>=3.0.1 <4.0.0",
  "_id": "registry-auth-token@3.1.2",
  "_inCache": true,
  "_location": "/npm-check-updates/registry-auth-token",
  "_nodeVersion": "7.6.0",
  "_npmOperationalInternal": {
    "host": "packages-12-west.internal.npmjs.com",
    "tmp": "tmp/registry-auth-token-3.1.2.tgz_1491600052321_0.6556988854426891"
  },
  "_npmUser": {
    "name": "rexxars",
    "email": "rexxars@gmail.com"
  },
  "_npmVersion": "4.1.2",
  "_phantomChildren": {},
  "_requested": {
    "raw": "registry-auth-token@^3.0.1",
    "scope": null,
    "escapedName": "registry-auth-token",
    "name": "registry-auth-token",
    "rawSpec": "^3.0.1",
    "spec": ">=3.0.1 <4.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/npm-check-updates/package-json"
  ],
  "_resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.1.2.tgz",
  "_shasum": "1b9e51a185c930da34a9894b12a52ea998f1adaf",
  "_shrinkwrap": null,
  "_spec": "registry-auth-token@^3.0.1",
  "_where": "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/package-json",
  "author": {
    "name": "Espen Hovlandsdal",
    "email": "espen@hovlandsdal.com"
  },
  "bugs": {
    "url": "https://github.com/rexxars/registry-auth-token/issues"
  },
  "dependencies": {
    "rc": "^1.1.6"
  },
  "description": "Get the auth token set for an npm registry (if any)",
  "devDependencies": {
    "eslint": "^2.4.0",
    "eslint-config-bengler": "^1.0.7",
    "istanbul": "^0.4.2",
    "mocha": "^2.4.5",
    "require-uncached": "^1.0.2"
  },
  "directories": {},
  "dist": {
    "shasum": "1b9e51a185c930da34a9894b12a52ea998f1adaf",
    "tarball": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.1.2.tgz"
  },
  "gitHead": "1f325f0ef6fc8c38ef1ccb91be2063ccc9703dce",
  "homepage": "https://github.com/rexxars/registry-auth-token#readme",
  "keywords": [
    "npm",
    "conf",
    "config",
    "npmconf",
    "registry",
    "auth",
    "token",
    "authtoken"
  ],
  "license": "MIT",
  "main": "index.js",
  "maintainers": [
    {
      "name": "leipert",
      "email": "git@leipert.io"
    },
    {
      "name": "rexxars",
      "email": "rexxars@gmail.com"
    }
  ],
  "name": "registry-auth-token",
  "optionalDependencies": {},
  "readme": "# registry-auth-token\n\n[![npm version](http://img.shields.io/npm/v/registry-auth-token.svg?style=flat-square)](http://browsenpm.org/package/registry-auth-token)[![Build Status](http://img.shields.io/travis/rexxars/registry-auth-token/master.svg?style=flat-square)](https://travis-ci.org/rexxars/registry-auth-token)\n\nGet the auth token set for an npm registry from `.npmrc`. Also allows fetching the configured registry URL for a given npm scope.\n\n## Installing\n\n```\nnpm install --save registry-auth-token\n```\n\n## Usage\n\nReturns an object containing `token` and `type`, or `undefined` if no token can be found. `type` can be either `Bearer` or `Basic`.\n\n```js\nvar getAuthToken = require('registry-auth-token')\nvar getRegistryUrl = require('registry-auth-token/registry-url')\n\n// Get auth token and type for default `registry` set in `.npmrc`\nconsole.log(getAuthToken()) // {token: 'someToken', type: 'Bearer'}\n\n// Get auth token for a specific registry URL\nconsole.log(getAuthToken('//registry.foo.bar'))\n\n// Find the registry auth token for a given URL (with deep path):\n// If registry is at `//some.host/registry`\n// URL passed is `//some.host/registry/deep/path`\n// Will find token the closest matching path; `//some.host/registry`\nconsole.log(getAuthToken('//some.host/registry/deep/path', {recursive: true}))\n\n// Find the configured registry url for scope `@foobar`.\n// Falls back to the global registry if not defined.\nconsole.log(getRegistryUrl('@foobar'))\n```\n\n## Return value\n\n```js\n// If auth info can be found:\n{token: 'someToken', type: 'Bearer'}\n\n// Or:\n{token: 'someOtherToken', type: 'Basic'}\n\n// Or, if nothing is found:\nundefined\n```\n\n## Security\n\nPlease be careful when using this. Leaking your auth token is dangerous.\n\n## License\n\nMIT-licensed. See LICENSE.\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+ssh://git@github.com/rexxars/registry-auth-token.git"
  },
  "scripts": {
    "coverage": "istanbul cover _mocha",
    "posttest": "eslint .",
    "test": "mocha"
  },
  "version": "3.1.2"
}
