0.2.2 • Published 1 year ago
unascii v0.2.2
unascii
Print any image in ascii anywhere (browser/cli)
Usage (CLI)
Globally run unascii with npx:
npx unascii@latest ./file/path.jpgor
npx unascii@latest ./file/path.jpg --width=50Options:
--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 consoleUse 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 unasciiImport:
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