# @tannin/evaluate

> Evaluates the result of an expression given as postfix terms

Latest version **1.2.0** (published 2020-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tannin/evaluate
pnpm add @tannin/evaluate
yarn add @tannin/evaluate
bun add @tannin/evaluate
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-03-07 |
| First published | 2018-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Andrew Duthie |
| Maintainers | aduth |

## Links

- npm: https://www.npmjs.com/package/@tannin/evaluate
- Repository: https://github.com/aduth/tannin
- Issues: https://github.com/aduth/tannin/issues
- npm.io page: https://npm.io/package/@tannin/evaluate

## Recent versions

- 1.2.0 (latest) — 2020-03-07
- 1.1.2 — 2019-11-27
- 1.1.1 — 2019-03-08
- 1.1.0 — 2019-01-19
- 1.0.0 — 2018-11-05

## README

`@tannin/evaluate`
==================

Evaluates the result of an expression given as postfix terms.

## Installation

Using [npm](https://www.npmjs.com/) as a package manager:

```
npm install @tannin/evaluate
```

Otherwise, download a pre-built copy from unpkg:

[https://unpkg.com/@tannin/evaluate/dist/evaluate.min.js](https://unpkg.com/@tannin/evaluate/dist/evaluate.min.js)

## Usage

```js
import evaluate from '@tannin/evaluate';

// 3 + 4 * 5 / 6 ⇒ '3 4 5 * 6 / +'
const terms = [ '3', '4', '5', '*', '6', '/', '+' ];

evaluate( terms, {} );
// ⇒ 6.333333333333334
```

## License

Copyright 2019-2020 Andrew Duthie

Released under the [MIT License](https://opensource.org/licenses/MIT).

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