# typesafe-maths

> Mathematics but in a type safe manner

Latest version **1.2.4** (published 2018-10-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install typesafe-maths
pnpm add typesafe-maths
yarn add typesafe-maths
bun add typesafe-maths
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2018-10-01 |
| First published | 2018-10-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Laura disaster |
| Maintainers | walaura |
| Keywords | maths |

## Links

- npm: https://www.npmjs.com/package/typesafe-maths
- Repository: https://github.com/walaura/typesafe-maths
- Homepage: https://github.com/walaura/typesafe-maths#readme
- Issues: https://github.com/walaura/typesafe-maths/issues
- npm.io page: https://npm.io/package/typesafe-maths

## Dependencies (2)

- [jest](https://npm.io/package/jest.md) ^23.6.0
- [text-to-number](https://npm.io/package/text-to-number.md) 0.0.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.2.4 (latest) — 2018-10-01
- 1.2.3 — 2018-10-01
- 1.2.2 — 2018-10-01
- 1.2.1 — 2018-10-01
- 1.2.0 — 2018-10-01
- 1.1.0 — 2018-10-01
- 1.0.0 — 2018-10-01

## README

# typesafe-maths

Mathematics, but in a type safe manner!

```
const { add, substract, multiply, divide } = require('typesafe-maths');

add(2, 3) // 5
add('two', '3') // 5
multiply('one million', 2) // 2,000,000
```

This was inpired by [this tweet](https://twitter.com/tombomp/status/1046712282913345536) and really is a 5 line wrapper around `text-to-number`. Please do not use this ever. Thanks.

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