0.0.1 • Published 1 year ago
ascii-exp v0.0.1
Expression in ASCII Art
A simple but powerful library which converts:
1+2/3^someFunction(4,5^((1/2)-3))/5^3
To
2
──────────────────────────────
⎛ ⎞
⎜ ⎛ ⎞ ⎟
⎜ ⎜ 1 ⎟ ⎟
⎜ ⎜───⎟ - 3⎟
⎜ ⎜ 2 ⎟ ⎟
⎜ ⎝ ⎠ ⎟
someFunction⎜4, 5 ⎟
⎝ ⎠
3
1 + ────────────────────────────────
3
5
Usage
Command Line
npx ascii-exp <expression>
As a Library
const { render } = require("ascii-exp")
const rendered = render("1+2/3^someFunction(4,5^((1/2)-3))/5^3")
console.log(rendered)
Set up local dev environment
- Install node
- Install yarn
make setup
to install dev tools.make run
to run ascii-seq locally.make test
to run lint and unit tests.
Contributing
- Create a dev branch from
main
. - Make code changes and make sure
make build test
passes. - Commit the code changes and make a pull request.
0.0.1
1 year ago