{"_id":"ansi-wrap","_rev":"15463","name":"ansi-wrap","description":"Create ansi colors by passing the open and close codes.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T09:58:50.000Z","created":"2015-05-22T01:43:20.449Z","0.1.0":"2015-05-22T01:43:20.449Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/ansi-wrap.git"},"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","size":2088,"noattachment":false,"key":"/ansi-wrap/-/ansi-wrap-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ansi-wrap/download/ansi-wrap-0.1.0.tgz"},"directories":{},"publish_time":1432259000449,"_cnpm_publish_time":1432259000449,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/ansi-wrap","bugs":{"url":"https://github.com/jonschlinkert/ansi-wrap/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/ansi-wrap/blob/master/LICENSE"}}