@saber2pr/memo

0.0.3 • Public • Published

@saber2pr/memo

memorizer.

# from npm
npm install @saber2pr/memo

# from github
git clone https://github.com/Saber2pr/memo.git

API

const add = Memo((a, b) => {
  console.log('exec')
  return a + b
})

console.log(add(1, 2)) // exec 3
console.log(add(1, 2)) // 3

start

npm install
npm start

npm test

Author: saber2pr


develope and test

you should write ts in /src

you should make test in /src/test

export your core in /src/index.ts!

Readme

Keywords

Package Sidebar

Install

npm i @saber2pr/memo

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

3.06 kB

Total Files

13

Last publish

Collaborators

  • saber2pr