Socket
Socket
Sign inDemoInstall

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 - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

4

index.d.ts

@@ -217,3 +217,3 @@ import {LiteralUnion} from 'type-fest';

/**
__boolean__: Wether or not to fit all available space within the terminal.
__boolean__: Whether or not to fit all available space within the terminal.

@@ -227,3 +227,3 @@ __function__: Pass a callback function to control box dimensions.

console.log(boxen('foo bar', {
fullscreen: (width, height) => [width, height - 1];
fullscreen: (width, height) => [width, height - 1],
}));

@@ -230,0 +230,0 @@ ```

@@ -221,9 +221,7 @@ import process from 'node:process';

const LINE_SEPARATOR = (contentWidth + BORDERS_WIDTH + options.margin.left >= columns) ? '' : NEWLINE;
const lines = content.split(NEWLINE);
const middle = lines.map(line => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(LINE_SEPARATOR);
const middle = lines.map(line => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(NEWLINE);
return top + LINE_SEPARATOR + middle + LINE_SEPARATOR + bottom;
return top + NEWLINE + middle + NEWLINE + bottom;
};

@@ -230,0 +228,0 @@

{
"name": "boxen",
"version": "7.0.0",
"version": "7.0.1",
"description": "Create boxes in the terminal",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -235,3 +235,3 @@ # boxen

Wether or not to fit all available space within the terminal.
Whether or not to fit all available space within the terminal.

@@ -244,3 +244,3 @@ Pass a callback function to control box dimensions:

console.log(boxen('foo bar', {
fullscreen: (width, height) => [width, height - 1];
fullscreen: (width, height) => [width, height - 1],
}));

@@ -247,0 +247,0 @@ ```

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