blessings

0.0.1 • Public • Published

Blessings

This is a node.js port of blessings, an easy to use library for manipulating ANSITERM terminals.

Installation

$ npm install blessings

Usage

The module exports a class called Terminal, which gives you a few handy methods for manipulating the terminal. For example:

var Terminal = require('blessings')

with (new Terminal()) {
	writeln(red('red'), green('green'), 'and', blue('blue'))
	writeln(bold('bold'), 'and', normal('normal'))
	writeln(bg.darkgray('dark backgrounds'))
}

You can also use blessings to navigate the terminal:

var Terminal = require('blessings')

with (new Terminal()) {
	write(moveUp)
	clearLine()
	writeln(italic('W00T'))
	write(moveDown(2) + moveRight)
	write(bold('ggg'))
}

License

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i blessings

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jussi-kalliokoski