🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@xutl/ansi

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xutl/ansi

ANSI Colorizer

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
18
1700%
Maintainers
2
Weekly downloads
 
Created
Source

@xutl/ansi

One eXtremely Useful Tool Library to facilitate writing CLI programs that need colored output and moving the text-cursor.

Install

npm install --save @xutl/ansi

Usage

import ANSI from '@xutl/ansi';

process.stdout.write(ANSI.red(`my ${ANSI.bold('bold text')} in red`));

import { Stream } from '@xutl/ansi';

const s = new Stream(process.stdout);

s.foreground('red').write('my ').bold().write('bold text').reset().foreground('red').write(' in red');

License

Copyright 2022 xutl.es

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Keywords

ANSI

FAQs

Package last updated on 19 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts