2.0.0 • Published 6 years ago

box-console v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

box-console Build Status npm dependents

Terminal box message

console

Install

$ npm install box-console

Usage

const chalk = require('chalk');
const boxConsole = require('box-console');

let msg = chalk(`New ${chalk.yellow('patch')} version of ${chalk.red('box-console')} available! ${chalk.red('0.1.0')} -> ${'0.1.1'}`);
let tip = chalk(`Registry ${chalk.cyan('https://github.com/snayan/box-console')}`);
let install = chalk(`Run ${chalk.green('npm i ' + 'box-console')} to update`);

boxConsole([msg, tip, install]);

or you can use for loading ESM modules.

import boxConsole from 'box-console';

API

boxConsole(messages) => string

messages

Type:string|string[]

message be output.

Related

  • boxen - Create boxes in the terminal