# terminal-block-fonts

> big fonts which each character is formed by many blocks for terminal display

Latest version **1.0.2** (published 2019-02-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install terminal-block-fonts
pnpm add terminal-block-fonts
yarn add terminal-block-fonts
bun add terminal-block-fonts
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-02-07 |
| First published | 2019-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Cao |
| Maintainers | bencao |
| Keywords | terminal, block, fonts |

## Links

- npm: https://www.npmjs.com/package/terminal-block-fonts
- Repository: https://github.com/bencao/terminal-block-fonts
- Homepage: https://github.com/bencao/terminal-block-fonts#readme
- Issues: https://github.com/bencao/terminal-block-fonts/issues
- npm.io page: https://npm.io/package/terminal-block-fonts

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-02-07
- 1.0.1 — 2019-02-07
- 1.0.0 — 2019-02-07

## README

# Terminal Block Fonts

Big fonts for terminal display. Each character is a block formed by many dots.

The font data came from [Arcade](https://www.dafont.com/arcade-ya.font), font copy rights belongs to the original author.

## Install

```
npm install --save terminal-block-fonts
```

## Usage

### Generate block string directly

```
const { toBlockString } = require("terminal-block-fonts");

console.log(toBlockString("05:30:12 AM"));
```

### Generate blocks and manipulate them

```
const { toBlock, mapBlock, concatBlocks, toString } = require("terminal-block-fonts");
const { red, yellow, blue } = require("chalk");

const hourBlock = toBlock("05");
const minuteBlock = toBlock("30");
const secondBlock = toBlock("12");
const sepBlock = toBlock(":");

console.log(toString(concatBlocks(
  mapBlock(hourBlock, red),
  sepBlock,
  mapBlock(minuteBlock, yellow),
  sepBlock,
  mapBlock(secondBlock, blue)
)));
```

---
_Source: https://npm.io/package/terminal-block-fonts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
