0.2.2 • Published 8 months ago

unascii v0.2.2

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

unascii

npm version npm downloads License

Print any image in ascii anywhere (browser/cli)

Usage (CLI)

Globally run unascii with npx:

npx unascii@latest ./file/path.jpg

or

npx unascii@latest ./file/path.jpg --width=50
Options:
--width Width of the image
--widthSkew Width Skew of the image
--output <console|file> Output as file or console
--characters <minimalist|normal|normal2|alphabetic|alphanumeric|numerical|extended|math|arrow|grayscale|max|codepage437|blockelement> Output Character Set
--grayscale <true|false> Output as grayscale or color only works with console

Use npx unascii --help for more usage info.

Usage (API)

Install package:

# ✨ Auto-detect
npx nypm install unascii

# npm
npm install unascii

# yarn
yarn add unascii

# pnpm
pnpm install unascii

# bun
bun install unascii

Import:

ESM (Node.js, Bun)

import {} from 'unascii'

CommonJS (Legacy Node.js)

const {} = require('unascii')

CDN (Deno, Bun and Browsers)

import {} from 'https://esm.sh/unascii'

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Published under the MIT license. Made by community 💛


🤖 auto updated with automd

0.2.2

8 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.0

9 months ago