# back-calculation

> calculate the number by the sum

Latest version **2.0.1** (published 2023-11-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install back-calculation
pnpm add back-calculation
yarn add back-calculation
bun add back-calculation
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2023-11-24 |
| First published | 2020-06-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | zjh |
| Maintainers | slkiop |

## Links

- npm: https://www.npmjs.com/package/back-calculation
- Repository: https://github.com/zhangjiahao93/back-calculation
- Homepage: https://github.com/zhangjiahao93/back-calculation#readme
- Issues: https://github.com/zhangjiahao93/back-calculation/issues
- npm.io page: https://npm.io/package/back-calculation

## Recent versions

- 2.0.1 (latest) — 2023-11-24
- 2.0.0 — 2023-11-24
- 1.2.0 — 2020-06-03
- 1.0.0 — 2020-06-03

## README

# back-calculation
逆计算和，反算和，已知“2个及以上数的和”和这些数字，求组成和的数字是这些数字的哪几项 ？

[blog地址](https://www.cnblogs.com/zjhblogs/p/13036404.html)

[演示 demo 地址](http://zjh.cool/sum/)

[演示 demo 源码](https://github.com/zhangjiahao93/back-calculation-demo)

[npm 地址](https://www.npmjs.com/package/back-calculation)


# install
```
yarn add back-calculation 
# or
npm install back-calculation 
```

# use 
```
import BC from "back-calculation";

const obj = new BC({
  input: [1, 2, 3, 4, 5, 6, 7, 8, 9],
  sum: 20,
});

console.log(obj.getValues());
```

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