{"name":"memoize-decorator","version":"1.0.2","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":"86e0f81c0255a0a0bcfdb8a397d4610c98b3f500","_id":"memoize-decorator@1.0.2","scripts":{},"_shasum":"605a41715c4171db192a90098b00ab8d6e1102f5","_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":"605a41715c4171db192a90098b00ab8d6e1102f5","tarball":"http://registry-npm.ywwl.com/memoize-decorator/download/memoize-decorator-1.0.2.tgz","integrity":"sha512-G2vHcq4c+EwnBAOeWCH1mNz99QPCgm4ECjhHOd3SFZm66jVlwhBLdqhCvnHxptaRyZfm8ap3igoeDfrO92+uHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb6udP31obCGxXciJoPqiusspUPdHmZxhT7z2ZiyomiQIhAMl/tp6oPGQXVt7qvCybuGKl5APt0H2AGJopqXS9LwC3"}],"size":2751,"noattachment":false,"key":"/memoize-decorator/-/memoize-decorator-1.0.2.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":1428757072963,"_cnpm_publish_time":1428757072963,"dist-tags":{"latest":"1.0.2"}}