Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

boxen

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boxen

Create boxes in the terminal

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13M
increased by3.32%
Maintainers
1
Weekly downloads
 
Created

What is boxen?

The boxen npm package is used to create boxes in the terminal for displaying messages. It is useful for CLI applications where you want to highlight information or separate it visually from other output.

What are boxen's main functionalities?

Creating a simple message box

This feature allows you to create a simple box around a message with padding inside the box. The padding option adds an empty space between the text and the box border.

const boxen = require('boxen');
console.log(boxen('Hello, world!', {padding: 1}));

Customizing box style

Boxen allows you to customize the style of the box with various options such as border style and color. This can help make the box stand out or fit a certain theme.

const boxen = require('boxen');
console.log(boxen('Custom box style', {borderStyle: 'double', borderColor: 'blue', padding: 1}));

Aligning text within the box

You can align the text inside the box to the left, right, or center. This feature is useful for formatting the message in a visually appealing way.

const boxen = require('boxen');
console.log(boxen('Centered text', {textAlignment: 'center', padding: 1}));

Other packages similar to boxen

Keywords

FAQs

Package last updated on 21 Dec 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc