boxy-font

1.0.1 • Public • Published
┌──────┐ ┌───────┐┌───┬───┐┌───┬───┐     ┌───────┐┌───────┐┌────┬──┐┌───────┐
│   ─  └┐│   │   │├─     ─┤│       │     │    ───┤│   │   ││    │  ││       │
│   ──  ││       ││   │   │├──     │     │     ┌─┘│       ││  │    │└─┐   ┌─┘
└───────┘└───────┘└───┴───┘└───────┘     └─────┘  └───────┘└──┴────┘  └───┘

Overview

Boxy Font is a fancy font with square characters. It can be used in any monospaced environment. For example, you can create a terminal banner, print it in the browser developer console, or use it as a heading in your README.

Chrome Dev Tools Mac OS terminal

Install

yarn add boxy-font

How to use

boxy(value)

Converts an input string into string of boxy characters.

const { boxy } = require('boxy-font');
 
const boxyfied = boxy('hello world!');

Arguments

  • value (string): The string to convert.

Returns

  • (string): The converted string.

generateCharsTable()

Generates the table of all supported characters.

const { generateCharsTable } = require('boxy-font/utils');
 
console.log(generateCharsTable());

Returns

  • (string): The table as a multi-line string.

Dependents (0)

Package Sidebar

Install

npm i boxy-font

Weekly Downloads

18

Version

1.0.1

License

MIT

Unpacked Size

15.7 kB

Total Files

5

Last publish

Collaborators

  • azrael25