1.0.0 • Published 8 months ago

ascii-shadow-text v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

ascii-shadow-text

ascii-shadow-text is a lightweight JavaScript library for generating ASCII art text using "shadowed" characters. It supports a wide range of characters, including letters, numbers, and some punctuation marks.


Installation

Install the package via npm:

npm install ascii-shadow-text

Usage

You can use this package in both CommonJS and ES Module environments.

Using ES Modules (import)

import { asciiShadowText } from 'ascii-shadow-text';

const art = asciiShadowText("Hello, World!");
console.log(art);

Using CommonJS (require)

const { asciiShadowText } = require('ascii-shadow-text');

const art = asciiShadowText("Hello, World!");
console.log(art);

Available Characters

The following characters are currently supported:

Letters

A-Z

Numbers

0-9

Punctuation and Symbols

, . ! ? ' - (space)


Example Output

const art = asciiShadowText("Shadow Text");
console.log(art);

SHADOW TEXT sample

Notes

  1. Text is automatically converted to uppercase during processing.
  2. Characters not yet supported will be skipped silently.
  3. Characters differ in width, but all are 7 lines tall.
1.0.0

8 months ago