# ascii-exp

> Render expression in ASCII art

Latest version **0.0.1** (published 2023-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install ascii-exp
pnpm add ascii-exp
yarn add ascii-exp
bun add ascii-exp
```

Provides the command `ascii-exp`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-01-24 |
| First published | 2023-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | masterginger |

## Links

- npm: https://www.npmjs.com/package/ascii-exp
- npm.io page: https://npm.io/package/ascii-exp

## Recent versions

- 0.0.1 (latest) — 2023-01-24

## README

# 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
1. [Install node](https://nodejs.org/en/download/)
1. [Install yarn](https://classic.yarnpkg.com/lang/en/docs/install)
1. `make setup` to install dev tools.
1. `make run` to run ascii-seq locally.
1. `make test` to run lint and unit tests.

# Contributing
1. Create a dev branch from `main`.
1. Make code changes and make sure `make build test` passes.
1. Commit the code changes and make a pull request.

---
_Source: https://npm.io/package/ascii-exp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
