@shba007/unascii
v0.3.2
Published
Print any image in ascii anywhere (browser/cli)
Downloads
140
Readme
unascii
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