R8244/node_modules/ansi-wrap14df7e7ba70fsolothurn
R8244/node_modules/ansi-wrap
14df7e7ba70fsolothurn
ansi-wrap
ansi-wrap
README.md
README.md
ansi-wrap 
Create ansi colors by passing the open and close codes.
Install
Install with npm
sh $ npm i ansi-wrap --save
Usage
js var wrap = require('ansi-wrap');
Example
Pass codes for ansi magenta background:
js console.log(wrap(45, 49, 'This is a message...')); //=> '\u001b[45mfoo\u001b[49m'
Which prints out...

Related projects
This is used in these projects:
- ansi-reset
- ansi-bold
- ansi-dim
- ansi-italic
- ansi-underline
- ansi-inverse
- ansi-hidden
- ansi-strikethrough
- ansi-black
- ansi-red
- ansi-green
- ansi-yellow
- ansi-blue
- ansi-magenta
- ansi-cyan
- ansi-white
- ansi-gray
- ansi-grey
- ansi-bgblack
- ansi-bgred
- ansi-bggreen
- ansi-bgyellow
- ansi-bgblue
- ansi-bgmagenta
- ansi-bgcyan
- ansi-bgwhite
Running tests
Install dev dependencies:
sh $ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
+ github/jonschlinkert + twitter/jonschlinkert
License
Copyright © 2015 Jon Schlinkert Released under the MIT license.
_This file was generated by verb-cli on May 21, 2015._
c4science · Help