{
  "_args": [
    [
      {
        "raw": "console-ui@^2.0.0",
        "scope": null,
        "escapedName": "console-ui",
        "name": "console-ui",
        "rawSpec": "^2.0.0",
        "spec": ">=2.0.0 <3.0.0",
        "type": "range"
      },
      "/home/travis/build/lukesargeant/ember-sparkline/node_modules/ember-cli"
    ]
  ],
  "_from": "console-ui@>=2.0.0 <3.0.0",
  "_id": "console-ui@2.0.1",
  "_inCache": true,
  "_location": "/console-ui",
  "_nodeVersion": "6.9.1",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/console-ui-2.0.1.tgz_1509386752344_0.9735114113427699"
  },
  "_npmUser": {
    "name": "stefanpenner",
    "email": "stefan.penner@gmail.com"
  },
  "_npmVersion": "3.10.8",
  "_phantomChildren": {
    "color-convert": "1.9.1",
    "escape-string-regexp": "1.0.5",
    "has-flag": "2.0.0"
  },
  "_requested": {
    "raw": "console-ui@^2.0.0",
    "scope": null,
    "escapedName": "console-ui",
    "name": "console-ui",
    "rawSpec": "^2.0.0",
    "spec": ">=2.0.0 <3.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/ember-cli"
  ],
  "_resolved": "https://registry.npmjs.org/console-ui/-/console-ui-2.0.1.tgz",
  "_shasum": "56d0721ebcc44e6c9c3de02f355f898aba41ea79",
  "_shrinkwrap": null,
  "_spec": "console-ui@^2.0.0",
  "_where": "/home/travis/build/lukesargeant/ember-sparkline/node_modules/ember-cli",
  "author": {
    "name": "Stefan Penner",
    "email": "stefan.penner@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/ember-cli/console-ui/issues"
  },
  "dependencies": {
    "chalk": "^2.1.0",
    "inquirer": "^2",
    "ora": "^1.3.0",
    "through": "^2.3.8"
  },
  "description": "common interface for abstracting a console ui",
  "devDependencies": {
    "chai": "^4.1.1",
    "mocha": "^4.0.0"
  },
  "directories": {},
  "dist": {
    "shasum": "56d0721ebcc44e6c9c3de02f355f898aba41ea79",
    "tarball": "https://registry.npmjs.org/console-ui/-/console-ui-2.0.1.tgz"
  },
  "engines": {
    "node": "^4.5 || >= 6.*"
  },
  "gitHead": "e44e2d23307bf870985c2fc9236e9083d2f0fc46",
  "homepage": "https://github.com/ember-cli/console-ui#readme",
  "license": "ISC",
  "main": "index.js",
  "maintainers": [
    {
      "name": "ember-cli",
      "email": "stefan.penner+ember-cli@gmail.com"
    },
    {
      "name": "kellyselden",
      "email": "kellyselden@gmail.com"
    },
    {
      "name": "nathanhammond",
      "email": "npm@nathanhammond.com"
    },
    {
      "name": "rwjblue",
      "email": "me@rwjblue.com"
    },
    {
      "name": "stefanpenner",
      "email": "stefan.penner@gmail.com"
    },
    {
      "name": "trabus",
      "email": "trabus@gmail.com"
    },
    {
      "name": "turbo87",
      "email": "tobias.bieniek@gmx.de"
    }
  ],
  "name": "console-ui",
  "optionalDependencies": {},
  "readme": "# console-ui\n\n[![Build Status](https://travis-ci.org/ember-cli/console-ui.svg?branch=master)](https://travis-ci.org/ember-cli/console-ui)\n[![Build status](https://ci.appveyor.com/api/projects/status/38tkats2frmmxt2f/branch/master?svg=true)](https://ci.appveyor.com/project/embercli/console-ui/branch/master)\n\nThe goal of this library, is to declare a common interface that various\nnode_modules can utilize allowing there various UI interactions to be well\ncoordinated and interopable. This repo provides a reference UI implementation,\nand a test mock implementation. In theory, an alternate implementation abiding\nby the describe API could be provided, and the system and all participating\nlibraries would continue to function correctly.\n\nFeatures:\n\n* unified and pluggable input/output streams for all participants\n* system wide writeLevels enabling ability to easily silence/warn/debug print\n  while abiding by shared configuration\n* unified progress\n* unified CI state (to disable CI unfriendly features such as progress spinners)\n* simple\n* test mock\n\n## Usage\n\n```js\nvar UI = require('console-ui')\nvar ui = new UI({\n  inputStream: process.stdin,\n  outputStream: process.stdout,\n  writeLevel: 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR',\n  ci: true | false\n});\n```\n\nwrite to output:\n\n```js\nui.write('message');\nui.write('message', 'ERROR'); // specify  writelevel\n```\n\n\nwrite + newline to output:\n\n```js\nui.writeLine('message');\nui.writeLine('message', 'ERROR'); // specify  writelevel\n```\n\nwrite with DEBUG writeLevel\n\n```js\nui.writeDebugLine('message');\n```\n\nwrite with INFO writeLevel\n\n```js\nui.writeInfoLine('message');\n```\n\nwrite with WARN writeLevel\n\n```js\nui.writeWarnLine('message');\n```\n\nwrite a message related to a deprecation\n\n```js\nui.writeDeprecateLine('some message', true | false); // pass boolean as second argument indicating if deprecated or not\n```\n\nwrite an error nicely (in red) to the console:\n\n* if error.file || error.filename, nicely print the file name\n  * if error.line also nicely print file + line\n  * if error.col also nicely print file + line + col\n\n* if error.message, nicely print it\n* if error.stack, nicely print it\n\n```js\nui.writeError(error);\n```\n\nto adjust the writeLevel on the fly:\n\n```js\nui.setWriteLevel('DEBUG' || 'INFO' || 'WARNING' || 'ERROR');\n```\n\n\nto begin progress spinner \\w message (only if INFO writeLevel is visible)\n\n```js\nui.startProgress('building...');\n```\n\nto end progress spinner\n\n```js\nui.stopProgress();\n```\n\nto prompt a user, via [inquirer](https://www.npmjs.com/package/inquirer)\n\n```js\nui.prompt(queryForInquirer, callback);\n```\n\nto query if a given `writeLevel` is visible:\n\n```js\nui.writeLevelVisible('DEBUG' || 'INFO' || 'WARNING' || 'ERROR'); // => true | false\n```\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ember-cli/console-ui.git"
  },
  "scripts": {
    "test": "mocha tests/**/*-test.js",
    "test:debug": "mocha debug tests/**/*-test.js"
  },
  "version": "2.0.1"
}
