# rust-wasm-react-calculator

> This package is the result of compiling Rust in WASM with wasm-pack

Latest version **0.1.7** (published 2019-12-30) · 0 weekly downloads

## Install

```sh
npm install rust-wasm-react-calculator
pnpm add rust-wasm-react-calculator
yarn add rust-wasm-react-calculator
bun add rust-wasm-react-calculator
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2019-12-30 |
| First published | 2019-12-29 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 868.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | krab7191 |
| Keywords | wasm, web-assembly, webassembly, Rust, calculator |

## Links

- npm: https://www.npmjs.com/package/rust-wasm-react-calculator
- npm.io page: https://npm.io/package/rust-wasm-react-calculator

## Recent versions

- 0.1.7 (latest) — 2019-12-30
- 0.1.6 — 2019-12-30
- 0.1.4 — 2019-12-29
- 0.1.3 — 2019-12-29
- 0.1.2 — 2019-12-29
- 0.1.1 — 2019-12-29
- 0.1.0 — 2019-12-29

## README

This package is the result of compiling Rust in WASM with wasm-pack

## This is not a production package

This package is not tested, and is just the result of some fun and learning with Rust and Wasm

Source code [HERE](https://github.com/krab7191/rust-wasm-calculator/tree/master/lib)

## Links:

[wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)

[blog post tutorial with react](https://prestonrichey.com/blog/react-rust-wasm/)

## Usage:

`// Import package`

`const wasm = await import('rust-wasm-react-calculator'); // Wasm calls must be async`

Call calculate with a simple expression as string

`const expression = '14+5';`

`wasm.calculate(expression); // Expression must have 1 operator, +, -, X, /, %, ^`

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