{
  "_args": [
    [
      {
        "raw": "ansi-align@^1.1.0",
        "scope": null,
        "escapedName": "ansi-align",
        "name": "ansi-align",
        "rawSpec": "^1.1.0",
        "spec": ">=1.1.0 <2.0.0",
        "type": "range"
      },
      "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/update-notifier/node_modules/boxen"
    ]
  ],
  "_from": "ansi-align@>=1.1.0 <2.0.0",
  "_id": "ansi-align@1.1.0",
  "_inCache": true,
  "_location": "/npm-check-updates/ansi-align",
  "_nodeVersion": "5.11.0",
  "_npmOperationalInternal": {
    "host": "packages-16-east.internal.npmjs.com",
    "tmp": "tmp/ansi-align-1.1.0.tgz_1465244078324_0.3411616289522499"
  },
  "_npmUser": {
    "name": "nexdrew",
    "email": "andrew@npmjs.com"
  },
  "_npmVersion": "3.8.8",
  "_phantomChildren": {},
  "_requested": {
    "raw": "ansi-align@^1.1.0",
    "scope": null,
    "escapedName": "ansi-align",
    "name": "ansi-align",
    "rawSpec": "^1.1.0",
    "spec": ">=1.1.0 <2.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/npm-check-updates/update-notifier/boxen"
  ],
  "_resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-1.1.0.tgz",
  "_shasum": "2f0c1658829739add5ebb15e6b0c6e3423f016ba",
  "_shrinkwrap": null,
  "_spec": "ansi-align@^1.1.0",
  "_where": "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/update-notifier/node_modules/boxen",
  "author": {
    "name": "nexdrew"
  },
  "bugs": {
    "url": "https://github.com/nexdrew/ansi-align/issues"
  },
  "dependencies": {
    "string-width": "^1.0.1"
  },
  "description": "align-text with ANSI support for CLIs",
  "devDependencies": {
    "ava": "^0.15.2",
    "chalk": "^1.1.3",
    "coveralls": "^2.11.9",
    "nyc": "^6.4.4",
    "standard": "^7.1.2",
    "standard-version": "^2.3.0"
  },
  "directories": {},
  "dist": {
    "shasum": "2f0c1658829739add5ebb15e6b0c6e3423f016ba",
    "tarball": "https://registry.npmjs.org/ansi-align/-/ansi-align-1.1.0.tgz"
  },
  "files": [
    "index.js"
  ],
  "gitHead": "839c4e214a5690d7463dda32cf76d2ac15826f7a",
  "homepage": "https://github.com/nexdrew/ansi-align#readme",
  "keywords": [
    "ansi",
    "align",
    "cli",
    "center",
    "pad"
  ],
  "license": "ISC",
  "main": "index.js",
  "maintainers": [
    {
      "name": "nexdrew",
      "email": "andrew@npmjs.com"
    }
  ],
  "name": "ansi-align",
  "optionalDependencies": {},
  "readme": "# ansi-align\n\n> align-text with ANSI support for CLIs\n\n[![Build Status](https://travis-ci.org/nexdrew/ansi-align.svg?branch=master)](https://travis-ci.org/nexdrew/ansi-align)\n[![Coverage Status](https://coveralls.io/repos/github/nexdrew/ansi-align/badge.svg?branch=master)](https://coveralls.io/github/nexdrew/ansi-align?branch=master)\n[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)\n\nEasily center- or right- align a block of text, carefully ignoring ANSI escape codes.\n\nE.g. turn this:\n\n<img width=\"281\" alt=\"ansi text block no alignment :(\" src=\"https://cloud.githubusercontent.com/assets/1929625/14937509/7c3076dc-0ed7-11e6-8c16-4f6a4ccc8346.png\">\n\nInto this:\n\n<img width=\"278\" alt=\"ansi text block center aligned!\" src=\"https://cloud.githubusercontent.com/assets/1929625/14937510/7c3ca0b0-0ed7-11e6-8f0a-541ca39b6e0a.png\">\n\n## Install\n\n```sh\nnpm install --save ansi-align\n```\n\n```js\nvar ansiAlign = require('ansi-align')\n```\n\n## API\n\n### `ansiAlign(text, [opts])`\n\nAlign the given text per the line with the greatest [`string-width`](https://github.com/sindresorhus/string-width), returning a new string (or array).\n\n#### Arguments\n\n- `text`: required, string or array\n\n    The text to align. If a string is given, it will be split using either the `opts.split` value or `'\\n'` by default. If an array is given, a different array of modified strings will be returned.\n\n- `opts`: optional, object\n\n    Options to change behavior, see below.\n\n#### Options\n\n- `opts.align`: string, default `'center'`\n\n   The alignment mode. Use `'center'` for center-alignment, `'right'` for right-alignment, or `'left'` for left-alignment. Note that the given `text` is assumed to be left-aligned already, so specifying `align: 'left'` just returns the `text` as is (no-op).\n\n- `opts.split`: string or RegExp, default `'\\n'`\n\n    The separator to use when splitting the text. Only used if text is given as a string.\n\n- `opts.pad`: string, default `' '`\n\n    The value used to left-pad (prepend to) lines of lesser width. Will be repeated as necessary to adjust alignment to the line with the greatest width.\n\n### `ansiAlign.center(text)`\n\nAlias for `ansiAlign(text, { align: 'center' })`.\n\n### `ansiAlign.right(text)`\n\nAlias for `ansiAlign(text, { align: 'right' })`.\n\n### `ansiAlign.left(text)`\n\nAlias for `ansiAlign(text, { align: 'left' })`, which is a no-op.\n\n## Similar Packages\n\n- [`center-align`](https://github.com/jonschlinkert/center-align): Very close to this package, except it doesn't support ANSI codes.\n- [`left-pad`](https://github.com/camwest/left-pad): Great for left-padding but does not support center alignment or ANSI codes.\n- Pretty much anything by the [chalk](https://github.com/chalk) team\n\n## License\n\nISC © Contributors\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/nexdrew/ansi-align.git"
  },
  "scripts": {
    "coverage": "nyc report --reporter=text-lcov | coveralls",
    "pretest": "standard",
    "release": "standard-version",
    "test": "nyc ava"
  },
  "version": "1.1.0"
}
