# easycalc

> easycalc ========

Latest version **0.1.5** (published 2017-06-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install easycalc
pnpm add easycalc
yarn add easycalc
bun add easycalc
```

Provides the command `easycalc`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2017-06-24 |
| First published | 2017-06-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Igor N. Dultsev |
| Maintainers | yhaskell |

## Links

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

## Dependencies (1)

- [bignumber.js](https://npm.io/package/bignumber.js.md) ^4.0.2

## Recent versions

- 0.1.5 (latest) — 2017-06-24
- 0.1.3 — 2017-06-24
- 0.1.2 — 2017-06-24
- 0.1.1 — 2017-06-24
- 0.1.0 — 2017-06-24

## README

easycalc
========

easycalc is a primitive calculator written in typescript.


usage
-----

```
$ npm i -g easycalc

$ easycalc [FILE]
```

When file argument is present, easycalc reads and executes all lines from this file 
and outputs the final answer.

Otherwise, REPL is started.

You can do 2 things in REPL: 
* calculate things
* write them into variables

2 additional variables are present:
* `_` is a result of last computation
* `__precision__` is precision of calculation.


```js
> 5 + 7
12
> -(42 + 58)
-100
> 2 * 1/2
1
> __precision__ = 3
3
> third = 1/3
0.333
> a = 2 + 2 * 2
6
> 3 * third
0.999
> _
0.999
> __vars__
__precision__: 3
third: 0.333
a: 6
>
```



there also is a `__vars__` command (in REPL), that outputs the list of existing variables.

test
----

```
$ npm run test
```

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