0.1.0 • Published 9 years ago

ansi-wrap v0.1.0

Weekly downloads
2,789,905
License
MIT
Repository
github
Last release
9 years ago

ansi-wrap NPM version

Create ansi colors by passing the open and close codes.

Install

Install with npm

$ npm i ansi-wrap --save

Usage

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...

screen shot 2015-05-21 at 8 28 32 pm

Related projects

This is used in these projects:

Running tests

Install dev dependencies:

$ 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

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on May 21, 2015.

ansi-grayansi-cyanansi-redreact-native-bluetooth2killi8n-react-native-fast-imagern-send-smsgew-nodejs-api-clientreact-native-template-rfbaseairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-libraryreact-native-printer-brothersrn-pdf-reader-offline@infinitebrahmanuniverse/nolb-ans@everything-registry/sub-chunk-1143duckiesayreact-native-responsive-sizedfeuk-frontenddfeuk-frontend-manualpayutesting@brucearmstrong/sass-librarylayui-customfancy-log-levelsfenglin-uploaderjeuxui@geeky-apo/react-native-advanced-clipboardhcm-jsxys_cliwcq-vuevideo-multi-uploadern8n-nodes-caldav@litedexdev/litedex-core-swap@lofcz/sweetalert2-neutral@meerasolution/react-native-ms-upi-paymentnative-google-loginnative-kakao-loginnative-apple-login@headgum/tko-mapping@hemith/react-native-tnk@igniswap/igni-swap-lib@isogand/react-native-sliding-counter@iyansr/react-native-image-viewing@ko-developerhong/react-native-multiple-image-pickermiguelcostero-ng2-toasty@hawkingnetwork/react-native-tab-view@hbglobal/react-native-actions-shortcutsm2m-chartjs-plugin-crosshair@min98/layui-custom@recursiveforte/sprig-flux@phong95/react-native-multiple-image-picker@navabi/react-native-ssl-pinningpeter.you.jqweui.test.publish@felipesimmi/react-native-datalogic-module@saad27/react-native-bottom-tab-tournpm_one_12_34_1_npm_one_1_2_3npm_qwertynpm_one_2_2@rstacruz/pnpm@faizanhaider/iconsaxreact-native-test-module-hhhreact-native-version-managerreact-native-template-vife@thedoctor0/vuex-shared-mutationsreact-native-pulsator-native@taingo97/react-native-expo-key-rsa-kt@taingo97/react-native-expo-rsa@taingo97/react-native-rsa@taingo97/react-native-telpo-printerreact-native-kakao-mapsreact-native-transtracker-libraryreact-native-testwebreact-native-touch-id-namgyu@benovshe/sasslibrarysharingcomponent2ansi-dimansi-greenansi-magentaansi-greyansi-hiddenansi-inverseansi-italicansi-bgblackansi-bgblueansi-bgcyanansi-bggreenansi-bgmagentaansi-bgredansi-boldansi-bgwhiteansi-bgyellowansi-blackansi-blue@apardellass/react-native-audio-stream
0.1.0

9 years ago