# @feizheng/next-memoize

> Memoize for next.

Latest version **1.0.3** (published 2020-08-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @feizheng/next-memoize
pnpm add @feizheng/next-memoize
yarn add @feizheng/next-memoize
bun add @feizheng/next-memoize
```

## 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.0.3 |
| Published | 2020-08-12 |
| First published | 2019-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |

## Links

- npm: https://www.npmjs.com/package/@feizheng/next-memoize
- Homepage: https://github.com/afeiship/next-memoize
- npm.io page: https://npm.io/package/@feizheng/next-memoize

## Recent versions

- 1.0.3 (latest) — 2020-08-12
- 1.0.1 — 2020-02-16
- 1.0.0 — 2019-12-17

## README

# next-memoize
> Memoize for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @feizheng/next-memoize
```

## usage
```js
import '@feizheng/next-memoize';

const fibonacci = (n) => {
  return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2);
};
const memoized = nx.memoize(
  fibonacci
);

// First time: calc
const rs1 = memoized(number);
// Next time: From Cache
const rs2 = memoized(number);
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-memoize/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@feizheng/next-memoize
[version-url]: https://npmjs.org/package/@feizheng/next-memoize

[license-image]: https://img.shields.io/npm/l/@feizheng/next-memoize
[license-url]: https://github.com/afeiship/next-memoize/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@feizheng/next-memoize
[size-url]: https://github.com/afeiship/next-memoize/blob/master/dist/next-memoize.min.js

[download-image]: https://img.shields.io/npm/dm/@feizheng/next-memoize
[download-url]: https://www.npmjs.com/package/@feizheng/next-memoize

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