Kevin 29b9a0c50c clean && clean html base | 4 yıl önce | |
---|---|---|
.. | ||
LICENSE | 4 yıl önce | |
README.md | 4 yıl önce | |
index.js | 4 yıl önce | |
package.json | 4 yıl önce |
Create ansi colors by passing the open and close codes.
Install with npm
$ npm i ansi-wrap --save
var wrap = require('ansi-wrap');
Example
Pass codes for ansi magenta background:
console.log(wrap(45, 49, 'This is a message...'));
//=> '\u001b[45mfoo\u001b[49m'
Which prints out...
This is used in these projects:
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on May 21, 2015.