simple-memoizer

0.1.1 • Public • Published

simple-memoizer

Getting Started

Install the module with: npm install simple-memoizer

And it requires Proxy methods. So you need to add '--harmony-proxies' option (or '--harmony' if you use coffee-script).

var SM = require('simple-memoizer');
var memoized = new SM();

memoized.method = function() {
  var value = 5 * 5;
  console.log('calculated');
  return value;
}

memoized.method();
// calculated
// 25
memoized.method();
// 25

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

(Coming soon)

Release History

(Nothing yet)

License

Copyright (c) 2013 Masami Yonehara Licensed under the MIT license.

Dependents (0)

Package Sidebar

Install

npm i simple-memoizer

Weekly Downloads

7

Version

0.1.1

License

none

Last publish

Collaborators

  • hdemon