JSPM

calligraphy

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q56015F
  • License MIT

Command-line Unicode block font

Package Exports

  • calligraphy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (calligraphy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme



calligraphy


calligraphy npm downloads maintained

Command-line Unicode block font

Install

npm install --save calligraphy

Usage

Currently supports the following characters:

0 1 2 3 4 5 6 7 8 9 <space> : s

Each character is 5 (rows) x 7 (columns) and is provided as a 2D array of rows

const {
  zero,
  one,
  two,
  three,
  four,
  five,
  six,
  seven,
  eight,
  nine,
  space,
  colon,
  s,
} = require('calligraphy')

const zipWith = require('lodash/zipWith')
const {EOL} = require('os')

// Prints '3'
three.forEach(line => console.log(line))

// Prints '12:45'
const time = [one, two, colon, three, four]
const output = zipWith(...time, (...args) => args.join('  ')).join(EOL)
console.log(output)