box-console

box console for node

Usage no npm install needed!

<script type="module">
  import boxConsole from 'https://cdn.skypack.dev/box-console';
</script>

README

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