{"name":"memoize-decorator","version":"1.0.1","description":"Memoize getters and methods to compute only once","main":"lib/index.js","author":{"name":"Andrey Popp","email":"8mayday@gmail.com"},"license":"MIT","devDependencies":{"babel":"^5.0.12","babelify":"^6.0.2","mocha":"^2.2.4","mochify":"^2.7.1","phantomjs":"^1.9.16"},"gitHead":"336c2f100f926a9d6c5d6f35344fe5823f5f38e6","_id":"memoize-decorator@1.0.1","scripts":{},"_shasum":"a368a25ca6290c0caf35dd03886b4248a2d90fe6","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"andreypopp","email":"8mayday@gmail.com"},"maintainers":[{"name":"andreypopp","email":"8mayday@gmail.com"}],"dist":{"shasum":"a368a25ca6290c0caf35dd03886b4248a2d90fe6","tarball":"http://registry-npm.ywwl.com/memoize-decorator/download/memoize-decorator-1.0.1.tgz","integrity":"sha512-FRFr2HRSFUF5YuM3ptmFOApi7LxqCZz+NT/4ibRTsanEFHsoA6kCGIxO9PkPSlROb/YSJZ1zBTHtpJecGvp1tQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaDYfCPGA+5cXq5lx2i41BlqBPbbZz76edqjcHMUp3DQIgG5vnlXPr/2qASX5DA/jv/F7NoLQsKYqHZYDoo+X4mCY="}],"size":2746,"noattachment":false,"key":"/memoize-decorator/-/memoize-decorator-1.0.1.tgz"},"directories":{},"readme":"# memoize decorator\n\nThis is a method/getter decorator which is when applied to a method or a getter\nmemoizes the result of the first call and returns it on subsequent calls.\n\nAs decorators are a part of future ES7 standard they can only be used with\ntranspilers such as [Babel](http://babeljs.io).\n\nInstallation:\n\n    % npm install memoize-decorator\n\nExample:\n\n    import memoize from 'memoize-decorator'\n\n    class Component {\n\n      @memoize\n      get expensiveValue() {\n        console.log('heavy computations')\n        return 42\n      }\n    }\n\n    let component = new Component()\n    component.expensiveValue // prints 'heavy computations', returns 42\n    component.expensiveValue // just returns 42\n","publish_time":1428755350886,"_cnpm_publish_time":1428755350886,"dist-tags":{"latest":"1.0.2"}}