{
  "_args": [
    [
      {
        "raw": "update-notifier@^0.6.0",
        "scope": null,
        "escapedName": "update-notifier",
        "name": "update-notifier",
        "rawSpec": "^0.6.0",
        "spec": ">=0.6.0 <0.7.0",
        "type": "range"
      },
      "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/clite"
    ]
  ],
  "_from": "update-notifier@>=0.6.0 <0.7.0",
  "_id": "update-notifier@0.6.3",
  "_inCache": true,
  "_location": "/npm-check-updates/clite/update-notifier",
  "_nodeVersion": "5.2.0",
  "_npmOperationalInternal": {
    "host": "packages-12-west.internal.npmjs.com",
    "tmp": "tmp/update-notifier-0.6.3.tgz_1458188611750_0.477853721473366"
  },
  "_npmUser": {
    "name": "sboudrias",
    "email": "admin@simonboudrias.com"
  },
  "_npmVersion": "3.5.3",
  "_phantomChildren": {},
  "_requested": {
    "raw": "update-notifier@^0.6.0",
    "scope": null,
    "escapedName": "update-notifier",
    "name": "update-notifier",
    "rawSpec": "^0.6.0",
    "spec": ">=0.6.0 <0.7.0",
    "type": "range"
  },
  "_requiredBy": [
    "/npm-check-updates/clite"
  ],
  "_resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-0.6.3.tgz",
  "_shasum": "776dec8daa13e962a341e8a1d98354306b67ae08",
  "_shrinkwrap": null,
  "_spec": "update-notifier@^0.6.0",
  "_where": "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/clite",
  "author": {
    "name": "Sindre Sorhus",
    "email": "sindresorhus@gmail.com",
    "url": "sindresorhus.com"
  },
  "bugs": {
    "url": "https://github.com/yeoman/update-notifier/issues"
  },
  "dependencies": {
    "boxen": "^0.3.1",
    "chalk": "^1.0.0",
    "configstore": "^2.0.0",
    "is-npm": "^1.0.0",
    "latest-version": "^2.0.0",
    "semver-diff": "^2.0.0"
  },
  "description": "Update notifications for your CLI app",
  "devDependencies": {
    "mocha": "*",
    "xo": "*"
  },
  "directories": {},
  "dist": {
    "shasum": "776dec8daa13e962a341e8a1d98354306b67ae08",
    "tarball": "https://registry.npmjs.org/update-notifier/-/update-notifier-0.6.3.tgz"
  },
  "engines": {
    "node": ">=0.10.0"
  },
  "files": [
    "index.js",
    "check.js"
  ],
  "gitHead": "4896088fe3c03e69ad462e9b27c67abc94e9e8e7",
  "homepage": "https://github.com/yeoman/update-notifier#readme",
  "keywords": [
    "npm",
    "update",
    "updater",
    "notify",
    "notifier",
    "check",
    "checker",
    "cli",
    "module",
    "package",
    "version"
  ],
  "license": "BSD-2-Clause",
  "maintainers": [
    {
      "name": "sindresorhus",
      "email": "sindresorhus@gmail.com"
    },
    {
      "name": "addyosmani",
      "email": "addyosmani@gmail.com"
    },
    {
      "name": "passy",
      "email": "phartig@rdrei.net"
    },
    {
      "name": "sboudrias",
      "email": "admin@simonboudrias.com"
    },
    {
      "name": "eddiemonge",
      "email": "eddie+npm@eddiemonge.com"
    },
    {
      "name": "arthurvr",
      "email": "contact@arthurverschaeve.be"
    }
  ],
  "name": "update-notifier",
  "optionalDependencies": {},
  "readme": "# update-notifier [![Build Status](https://travis-ci.org/yeoman/update-notifier.svg?branch=master)](https://travis-ci.org/yeoman/update-notifier)\n\n> Update notifications for your CLI app\n\n![](screenshot.png)\n\nInform users of your package of updates in a non-intrusive way.\n\n#### Table of Contents\n\n- [Examples](#examples)\n- [How](#how)\n- [API](#api)\n- [About](#about)\n\n\n## Examples\n\n### Simple example\n\n```js\nconst updateNotifier = require('update-notifier');\nconst pkg = require('./package.json');\n\nupdateNotifier({pkg}).notify();\n```\n\n### Comprehensive example\n\n```js\nconst updateNotifier = require('update-notifier');\nconst pkg = require('./package.json');\n\n// Checks for available update and returns an instance\nconst notifier = updateNotifier({pkg});\n\n// Notify using the built-in convenience method\nnotifier.notify();\n\n// `notifier.update` contains some useful info about the update\nconsole.log(notifier.update);\n/*\n{\n\tlatest: '1.0.1',\n\tcurrent: '1.0.0',\n\ttype: 'patch', // possible values: latest, major, minor, patch, prerelease, build\n\tname: 'pageres'\n}\n*/\n```\n\n### Example with settings and custom message\n\n```js\nconst notifier = updateNotifier({\n\tpkg,\n\tupdateCheckInterval: 1000 * 60 * 60 * 24 * 7 // 1 week\n});\n\nconsole.log(`Update available: ${notifier.update.latest}`);\n```\n\n\n## How\n\nWhenever you initiate the update notifier and it's not within the interval threshold, it will asynchronously check with npm in the background for available updates, then persist the result. The next time the notifier is initiated the result will be loaded into the `.update` property. This prevents any impact on your package startup performance.\nThe check process is done in a unref'ed [child process](http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options). This means that if you call `process.exit`, the check will still be performed in its own process.\n\n\n## API\n\n### updateNotifier(options)\n\nChecks if there is an available update. Accepts settings defined below. Returns an object with update info if there is an available update, otherwise `undefined`.\n\n### options\n\n#### pkg\n\nType: `object`\n\n##### name\n\n*Required*  \nType: `string`\n\n##### version\n\n*Required*  \nType: `string`\n\n#### updateCheckInterval\n\nType: `number`  \nDefault: 1000 * 60 * 60 * 24 (1 day)\n\nHow often to check for updates.\n\n#### callback(error, update)\n\nType: `function`  \n\nPassing a callback here will make it check for an update directly and report right away. Not recommended as you won't get the benefits explained in [`How`](#how).\n\n`update` is equal to `notifier.update`\n\n\n### updateNotifier.notify([options])\n\nConvenience method to display a notification message *(see screenshot)*.\n\nOnly notifies if there is an update and the process is [TTY](http://nodejs.org/api/tty.html).\n\n#### options.defer\n\nType: `boolean`  \nDefault: `true`\n\nDefer showing the notification to after the process has exited.\n\n\n### User settings\n\nUsers of your module have the ability to opt-out of the update notifier by changing the `optOut` property to `true` in `~/.config/configstore/update-notifier-[your-module-name].yml`. The path is available in `notifier.config.path`.\n\nUsers can also opt-out by [setting the environment variable](https://github.com/sindresorhus/guides/blob/master/set-environment-variables.md) `NO_UPDATE_NOTIFIER` with any value or by using the `--no-update-notifier` flag on a per run basis.\n\n\n## About\n\nThe idea for this module came from the desire to apply the browser update strategy to CLI tools, where everyone is always on the latest version. We first tried automatic updating, which we discovered wasn't popular. This is the second iteration of that idea, but limited to just update notifications.\n\nThere are a bunch projects using it:\n\n- [Yeoman](http://yeoman.io) - Modern workflows for modern webapps\n- [AVA](https://github.com/sindresorhus/ava) - Simple concurrent test runner\n- [XO](https://github.com/sindresorhus/xo) - JavaScript happiness style linter\n- [Pageres](https://github.com/sindresorhus/pageres) - Capture website screenshots\n- [Node GH](http://nodegh.io) - GitHub command line tool\n- [Bower](http://bower.io) - A package manager for the web\n- [Hoodie CLI](http://hood.ie) - Hoodie command line tool\n- [Roots](http://roots.cx) - A toolkit for advanced front-end development\n\n[And 600+ more...](https://www.npmjs.org/browse/depended/update-notifier)\n\n\n## License\n\n[BSD license](http://opensource.org/licenses/bsd-license.php) and copyright Google\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/yeoman/update-notifier.git"
  },
  "scripts": {
    "test": "xo && mocha --timeout 20000"
  },
  "version": "0.6.3"
}
