Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/node_modules/ansi-wrap/ |
Upload File : |
# ansi-wrap [](http://badge.fury.io/js/ansi-wrap) > Create ansi colors by passing the open and close codes. ## Install Install with [npm](https://www.npmjs.com/) ```sh $ npm i ansi-wrap --save ``` ## Usage ```js var wrap = require('ansi-wrap'); ``` **Example** Pass codes for [ansi magenta background](https://github.com/jonschlinkert/ansi-bgmagenta): ```js console.log(wrap(45, 49, 'This is a message...')); //=> '\u001b[45mfoo\u001b[49m' ``` Which prints out... [](https://www.npmjs.com/) ## Related projects This is used in these projects: * [ansi-reset](https://github.com/jonschlinkert/ansi-reset) * [ansi-bold](https://github.com/jonschlinkert/ansi-bold) * [ansi-dim](https://github.com/jonschlinkert/ansi-dim) * [ansi-italic](https://github.com/jonschlinkert/ansi-italic) * [ansi-underline](https://github.com/jonschlinkert/ansi-underline) * [ansi-inverse](https://github.com/jonschlinkert/ansi-inverse) * [ansi-hidden](https://github.com/jonschlinkert/ansi-hidden) * [ansi-strikethrough](https://github.com/jonschlinkert/ansi-strikethrough) * [ansi-black](https://github.com/jonschlinkert/ansi-black) * [ansi-red](https://github.com/jonschlinkert/ansi-red) * [ansi-green](https://github.com/jonschlinkert/ansi-green) * [ansi-yellow](https://github.com/jonschlinkert/ansi-yellow) * [ansi-blue](https://github.com/jonschlinkert/ansi-blue) * [ansi-magenta](https://github.com/jonschlinkert/ansi-magenta) * [ansi-cyan](https://github.com/jonschlinkert/ansi-cyan) * [ansi-white](https://github.com/jonschlinkert/ansi-white) * [ansi-gray](https://github.com/jonschlinkert/ansi-gray) * [ansi-grey](https://github.com/jonschlinkert/ansi-grey) * [ansi-bgblack](https://github.com/jonschlinkert/ansi-bgblack) * [ansi-bgred](https://github.com/jonschlinkert/ansi-bgred) * [ansi-bggreen](https://github.com/jonschlinkert/ansi-bggreen) * [ansi-bgyellow](https://github.com/jonschlinkert/ansi-bgyellow) * [ansi-bgblue](https://github.com/jonschlinkert/ansi-bgblue) * [ansi-bgmagenta](https://github.com/jonschlinkert/ansi-bgmagenta) * [ansi-bgcyan](https://github.com/jonschlinkert/ansi-bgcyan) * [ansi-bgwhite](https://github.com/jonschlinkert/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](https://github.com/jonschlinkert/ansi-wrap/issues/new) ## Author **Jon Schlinkert** + [github/jonschlinkert](https://github.com/jonschlinkert) + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ## License Copyright © 2015 Jon Schlinkert Released under the MIT license. *** _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 21, 2015._