Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@figlet-ts/fonts

figlet-ts15MIT0.5.0TypeScript support: included

Bundle of font files for use alongside the figlet-ts lib. Designed to be tree-shaken to reduce size.

figlet, figlet-ts, figlet-fonts, fonts, ascii, ascii-font, ascii-art

readme

______________        ______    _____                        __________            _____
___  _______(________ ___  _______  /_ _______________       ___  ___________________  /________
__  /_   __  /__  __ `__  /_  _ _  __/ ___  ____  ___/       __  /_   _  __ __  __ _  ____  ___/
_  __/   _  / _  /_/ /_  / /  __/ /_   __  /  _____ \        _  __/   / /_/ _  / / / /_ _(__  )
/_/      /_/  _\__, / /_/  \___/\__/   _  /   ____/ /        /_/      \____//_/ /_/\__/ /____/
              /____/                   /_/    /____/

@figlet-ts/fonts

A library of ASCII fonts (FLF-format) for use with @figlet-ts/lib

Use it for:

  • Embedding 15KB of the specific font you want in your lean, mean, brotlified, minified source code
  • Embedding 11MB of text files to bloat your app because you forgot to make your bundler do tree-shaking

Installation

You will likely want this installed as a dev dependency, so you can use a bundler to cherry-pick / tree-shake the subset of fonts that you want.

NOTE: you don't need this fonts library to be able to use figlet-ts. The simplest implementation is to just embed a FLF font file (it's plain text) somewhere in your assets path, and use @figlet-ts/lib to load the FLF file directly.

This fonts bundle just makes things a little easier.

# npm
npm install -D @figlet-ts/fonts    # Install this fonts library as dev-dependency
npm install @figlet-ts/lib   # Install figlet-ts library to use the fonts in your app

# yarn
yarn add --dev @figlet-ts/fonts    # Install this fonts library as
yarn add @figlet-ts/lib      # Install figlet-ts library to be able to use the fonts in your app

Usage - Server-Side

// index.ts

Usage - Vue.js

// component.vue

Goals

  • ✅ Strongly-typed source code and published declarations
  • ✅ Provide an importable library of fonts
  • To support:
    • ✅ Tree-shaking
    • ✅ ES-style imports
    • ✅ CommonJS-style imports

Key

  • 🔲️ Not Started
  • ✴️ In Progress
  • ✅ Done
  • ❌ Cancelled

changelog

@figlet-ts/fonts

0.5.0

Minor Changes

  • 3e25238: Introduced Stylizers, allowing modification of the output as it's being rendered

0.4.0

Minor Changes

  • 86d41d2: Add 88 more publicly-availble fonts

0.3.1

Patch Changes

  • ace9a16: Fixing dependencies for fonts

0.3.0

Minor Changes

  • 02ab019: Add compression to fonts before production publish

0.2.0

Minor Changes

  • 37d68e6: First proper public release of all components