0.0.1 • Published 3 years 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^3To
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 setupto install dev tools.make runto run ascii-seq locally.make testto run lint and unit tests.
Contributing
- Create a dev branch from
main. - Make code changes and make sure
make build testpasses. - Commit the code changes and make a pull request.
0.0.1
3 years ago