0.4.1 • Published 8 months ago

@shba007/unascii v0.4.1

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 @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

8 months ago

0.4.0

10 months ago

0.3.7

10 months ago

0.3.6

11 months ago

0.3.5

11 months ago

0.3.4

12 months ago

0.3.3

12 months ago

0.3.2

12 months ago

0.3.1

1 year ago