{"name":"memoize-decorator","version":"1.0.0","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":"e9f70c85f537b2b9b179dea2effd5c502e913d30","_id":"memoize-decorator@1.0.0","scripts":{},"_shasum":"fe325cea8d87e2f7362785b6588fb280998dd94c","_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":"fe325cea8d87e2f7362785b6588fb280998dd94c","tarball":"http://registry-npm.ywwl.com/memoize-decorator/download/memoize-decorator-1.0.0.tgz","integrity":"sha512-m0UFoVpNFwbjHKS8xEUFtnZVaqHl2gPo5JCoO5V2xALG2omn7O3FAu+cL/L3oaxPKt2GEyK9Y8n+LJ66dw6oiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhvmDIqlWA4104gGz7m6JvHEdnqQG8QkGKv1sqAQU8xAiEA40LbtmdZhMOH/k0SzseDss/0Wf3kPRKI4Z2PLVGyoyU="}],"size":2741,"noattachment":false,"key":"/memoize-decorator/-/memoize-decorator-1.0.0.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":1428755278828,"_cnpm_publish_time":1428755278828,"dist-tags":{"latest":"1.0.2"}}