# @isaidnocookies/stringmath

> Package to handle math functions using JS strings

Latest version **1.2.3** (published 2018-11-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @isaidnocookies/stringmath
pnpm add @isaidnocookies/stringmath
yarn add @isaidnocookies/stringmath
bun add @isaidnocookies/stringmath
```

## 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.3 |
| Published | 2018-11-28 |
| First published | 2018-11-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 15.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Christopher Forte |
| Maintainers | isaidnocookies |
| Keywords | string, math |

## Links

- npm: https://www.npmjs.com/package/@isaidnocookies/stringmath
- Repository: https://github.com/isaidnocookies/stringmath
- Homepage: https://github.com/isaidnocookies/stringmath#readme
- Issues: https://github.com/isaidnocookies/stringmath/issues
- npm.io page: https://npm.io/package/@isaidnocookies/stringmath

## Dependencies (2)

- [chai](https://npm.io/package/chai.md) ^4.2.0
- [mocha](https://npm.io/package/mocha.md) ^5.2.0

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.2.3 (latest) — 2018-11-28
- 1.2.2 — 2018-11-28
- 1.2.1 — 2018-11-22
- 1.2.0 — 2018-11-22
- 1.1.1 — 2018-11-08
- 1.1.0 — 2018-11-08

## README

StringMath is a basic module that allows common math functions to be applied to strings.

Current functions are:
  - add
  - subtract
  - isGreaterThan
  - isGreaterThanOrEqualTo
  - isLessThan
  - isLessThanOrEqualTo
  - isEqual
  - roundUpToNearest0001
  - sciToDecimal

# Current Limitations!

  - Does not support negative numbers

### Useage

Coming soon...

Installation
```sh
$ npm install -s @isaidnocookies/StringMath
```

Useage
```js
var StringMath = require('@isaidnocookies/StringMath');

var stringmath = new StringMath();
var addresult = parseFloat(stringmath.add("0.001", "0.002"));
var subresult = parseFloat(stringmath.subtract("0.2", "0.1"));

console.log("0.001 + 0.002 = " + addresult); // '0.003'
console.log("0.2 - 0.1 = " + subresult); // '0.01'
```

Also, check out [ThreeBx]

   [ThreeBx]: <https://www.threebx.com>

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