New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jansi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jansi

Better ANSI

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

JANSI

JANSI is a simple abstraction of the ANSI library that adds user-readable function names to ANSI escape codes.

Further, JANSI allows strings to be color-formatted according to the Minecraft color scale using $ as a delimiter.

The reason behind this is that the list is already there, it makes sense, and it's a really easy way to throw color into a string.

Usage

var jansi = require('jansi');
var $ = jansi.$;

process.stdout.write('Hello!');
jansi.left(6);
process.stdout.write('J');
jansi.right(6);
process.stdout.write('\n');

console.log($('$!Hello, $AW$Bo$Ar$Bl$Ad$!!'));

Keywords

ansi

FAQs

Package last updated on 30 Apr 2014

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