{
  "_args": [
    [
      {
        "raw": "ansi-align@^2.0.0",
        "scope": null,
        "escapedName": "ansi-align",
        "name": "ansi-align",
        "rawSpec": "^2.0.0",
        "spec": ">=2.0.0 <3.0.0",
        "type": "range"
      },
      "/home/zkochan/src/pnpm/packages/pnpm/node_modules/boxen"
    ]
  ],
  "_from": "ansi-align@>=2.0.0 <3.0.0",
  "_id": "ansi-align@2.0.0",
  "_inCache": true,
  "_location": "/ansi-align",
  "_nodeVersion": "7.9.0",
  "_npmOperationalInternal": {
    "host": "packages-18-east.internal.npmjs.com",
    "tmp": "tmp/ansi-align-2.0.0.tgz_1493673296356_0.4257998722605407"
  },
  "_npmUser": {
    "name": "nexdrew",
    "email": "andrew@npmjs.com"
  },
  "_npmVersion": "4.2.0",
  "_phantomChildren": {},
  "_requested": {
    "raw": "ansi-align@^2.0.0",
    "scope": null,
    "escapedName": "ansi-align",
    "name": "ansi-align",
    "rawSpec": "^2.0.0",
    "spec": ">=2.0.0 <3.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/boxen"
  ],
  "_resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz",
  "_shasum": "c36aeccba563b89ceb556f3690f0b1d9e3547f7f",
  "_shrinkwrap": null,
  "_spec": "ansi-align@^2.0.0",
  "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/boxen",
  "author": {
    "name": "nexdrew"
  },
  "bugs": {
    "url": "https://github.com/nexdrew/ansi-align/issues"
  },
  "dependencies": {
    "string-width": "^2.0.0"
  },
  "description": "align-text with ANSI support for CLIs",
  "devDependencies": {
    "ava": "^0.19.1",
    "chalk": "^1.1.3",
    "coveralls": "^2.13.1",
    "nyc": "^10.3.0",
    "standard": "^10.0.2",
    "standard-version": "^4.0.0"
  },
  "directories": {},
  "dist": {
    "shasum": "c36aeccba563b89ceb556f3690f0b1d9e3547f7f",
    "tarball": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz"
  },
  "files": [
    "index.js"
  ],
  "gitHead": "b27d6251ee7b22c7350e4c39219283e3e0fa735e",
  "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": "2.0.0"
}
