{
  "_id": "ansi-wrap",
  "maintainers": [
    {
      "name": "jonschlinkert",
      "email": "github@sellside.com"
    }
  ],
  "keywords": [],
  "dist-tags": {
    "latest": "0.1.0"
  },
  "author": {
    "name": "Jon Schlinkert",
    "url": "https://github.com/jonschlinkert"
  },
  "_rev": "3-44943968f72092ac64d90a0e2df7b042",
  "description": "Create ansi colors by passing the open and close codes.",
  "readme": "# ansi-wrap [![NPM version](https://badge.fury.io/js/ansi-wrap.svg)](http://badge.fury.io/js/ansi-wrap)\n\n> Create ansi colors by passing the open and close codes.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i ansi-wrap --save\n```\n\n## Usage\n\n```js\nvar wrap = require('ansi-wrap');\n```\n\n**Example**\n\nPass codes for [ansi magenta background](https://github.com/jonschlinkert/ansi-bgmagenta):\n\n```js\nconsole.log(wrap(45, 49, 'This is a message...'));\n//=> '\\u001b[45mfoo\\u001b[49m'\n```\n\nWhich prints out...\n\n[![screen shot 2015-05-21 at 8 28 32 pm](https://cloud.githubusercontent.com/assets/383994/7761769/12488afa-fff8-11e4-9cc1-71a8a6ec14a4.png)](https://www.npmjs.com/)\n\n## Related projects\n\nThis is used in these projects:\n\n* [ansi-reset](https://github.com/jonschlinkert/ansi-reset)\n* [ansi-bold](https://github.com/jonschlinkert/ansi-bold)\n* [ansi-dim](https://github.com/jonschlinkert/ansi-dim)\n* [ansi-italic](https://github.com/jonschlinkert/ansi-italic)\n* [ansi-underline](https://github.com/jonschlinkert/ansi-underline)\n* [ansi-inverse](https://github.com/jonschlinkert/ansi-inverse)\n* [ansi-hidden](https://github.com/jonschlinkert/ansi-hidden)\n* [ansi-strikethrough](https://github.com/jonschlinkert/ansi-strikethrough)\n* [ansi-black](https://github.com/jonschlinkert/ansi-black)\n* [ansi-red](https://github.com/jonschlinkert/ansi-red)\n* [ansi-green](https://github.com/jonschlinkert/ansi-green)\n* [ansi-yellow](https://github.com/jonschlinkert/ansi-yellow)\n* [ansi-blue](https://github.com/jonschlinkert/ansi-blue)\n* [ansi-magenta](https://github.com/jonschlinkert/ansi-magenta)\n* [ansi-cyan](https://github.com/jonschlinkert/ansi-cyan)\n* [ansi-white](https://github.com/jonschlinkert/ansi-white)\n* [ansi-gray](https://github.com/jonschlinkert/ansi-gray)\n* [ansi-grey](https://github.com/jonschlinkert/ansi-grey)\n* [ansi-bgblack](https://github.com/jonschlinkert/ansi-bgblack)\n* [ansi-bgred](https://github.com/jonschlinkert/ansi-bgred)\n* [ansi-bggreen](https://github.com/jonschlinkert/ansi-bggreen)\n* [ansi-bgyellow](https://github.com/jonschlinkert/ansi-bgyellow)\n* [ansi-bgblue](https://github.com/jonschlinkert/ansi-bgblue)\n* [ansi-bgmagenta](https://github.com/jonschlinkert/ansi-bgmagenta)\n* [ansi-bgcyan](https://github.com/jonschlinkert/ansi-bgcyan)\n* [ansi-bgwhite](https://github.com/jonschlinkert/ansi-bgwhite)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/ansi-wrap/issues/new)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 21, 2015._",
  "repository": {
    "type": "git",
    "url": "https://github.com/jonschlinkert/ansi-wrap.git"
  },
  "bugs": {
    "url": "https://github.com/jonschlinkert/ansi-wrap/issues"
  },
  "license": {
    "type": "MIT",
    "url": "https://github.com/jonschlinkert/ansi-wrap/blob/master/LICENSE"
  },
  "versions": {
    "0.1.0": {
      "name": "ansi-wrap",
      "description": "Create ansi colors by passing the open and close codes.",
      "version": "0.1.0",
      "homepage": "https://github.com/jonschlinkert/ansi-wrap",
      "author": {
        "name": "Jon Schlinkert",
        "url": "https://github.com/jonschlinkert"
      },
      "repository": {
        "type": "git",
        "url": "https://github.com/jonschlinkert/ansi-wrap.git"
      },
      "bugs": {
        "url": "https://github.com/jonschlinkert/ansi-wrap/issues"
      },
      "license": {
        "type": "MIT",
        "url": "https://github.com/jonschlinkert/ansi-wrap/blob/master/LICENSE"
      },
      "files": [
        "index.js"
      ],
      "main": "index.js",
      "engines": {
        "node": ">=0.10.0"
      },
      "scripts": {
        "test": "mocha"
      },
      "dependencies": {},
      "devDependencies": {},
      "keywords": [],
      "_id": "ansi-wrap@0.1.0",
      "_shasum": "a82250ddb0015e9a27ca82e82ea603bbfa45efaf",
      "_from": ".",
      "_npmVersion": "2.5.1",
      "_nodeVersion": "0.12.0",
      "_npmUser": {
        "name": "jonschlinkert",
        "email": "github@sellside.com"
      },
      "maintainers": [
        {
          "name": "jonschlinkert",
          "email": "github@sellside.com"
        }
      ],
      "dist": {
        "shasum": "a82250ddb0015e9a27ca82e82ea603bbfa45efaf",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/ansi-wrap/-/ansi-wrap-0.1.0.tgz",
        "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDIslwGLbY7tutv8rejrULLVB18uJFIyuA9uvUd4P75rQIgaE4Odu9RFSVDMPVVWXbVK3x0LdQ+K2VaJOUOGwnnnTI="
          }
        ]
      }
    }
  },
  "name": "ansi-wrap",
  "time": {
    "modified": "2026-05-20T15:56:33.295Z",
    "created": "2015-05-22T01:43:20.449Z",
    "0.1.0": "2015-05-22T01:43:20.449Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/jonschlinkert/ansi-wrap"
}