0.4.1 • Published 3 months ago

@shba007/unascii v0.4.1

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

unascii

npm version npm downloads License

Print any image in ascii anywhere (browser/cli)

Usage (CLI)

Globally run unascii with npx:

npx @shba007/unascii@latest ./file/path.jpg

or

npx @shba007/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 @shba007/unascii --help for more usage info.

Usage (API)

Install package:

# ✨ Auto-detect
npx nypm install @shba007/unascii

# npm
npm install @shba007/unascii

# yarn
yarn add @shba007/unascii

# pnpm
pnpm install @shba007/unascii

# bun
bun install @shba007/unascii

Import:

ESM (Node.js, Bun)

import {} from '@shba007/unascii'

CommonJS (Legacy Node.js)

const {} = require('@shba007/unascii')

CDN (Deno, Bun and Browsers)

import {} from 'https://esm.sh/@shba007/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.4.1

3 months ago

0.4.0

5 months ago

0.3.7

5 months ago

0.3.6

5 months ago

0.3.5

6 months ago

0.3.4

7 months ago

0.3.3

7 months ago

0.3.2

7 months ago

0.3.1

7 months ago