🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

boxd

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boxd

Create boxes around text with Unicode box-drawing characters

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

boxd

For use in the console. Create boxes around text.

Usage

boxd(String | Array, options)

Where the first argument is a string or an array of strings, and the second is optional object. Options are:

  • type: Type of box to create. Supported types are light, heavy, double, arc, doubleDash, heavyDoubleDash, tripleDash, heavyTripleDash, quadDash, and heavyQuadDash. boxd uses Unicode box-drawing characters, if your console font doesn't have the character it won't display properly.
  • centered: Boolean, whether text should be centered horizontally in the box.
  • consoleCentered: Boolean, whether the box should be centered in the console.

Example:

const boxd = require('boxd');

console.log(boxd('Boxes are cool\nAnd boxd makes it easy'));
// or
console.log(boxd(['Boxes are cool', 'And boxd makes it easy']));

// ┌──────────────────────┐
// │Boxes are cool        │
// │And boxd makes it easy│
// └──────────────────────┘

Keywords

box

FAQs

Package last updated on 27 Jan 2017

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