{"name":"lazy-property","version":"1.0.0","description":"Lazily initialized properties for objects","main":"lazyProperty.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tape":"^2.12.3"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/lazy-property.git"},"keywords":["lazy","property","object","initialize","array","dictionary"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"850a27f710ec72f05b534805c31f095ff590f1ea","bugs":{"url":"https://github.com/mikolalysenko/lazy-property/issues"},"homepage":"https://github.com/mikolalysenko/lazy-property","_id":"lazy-property@1.0.0","dist":{"shasum":"84ddc4b370679ba8bd4cdcfa4c06b43d57111147","tarball":"http://registry-npm.ywwl.com/lazy-property/download/lazy-property-1.0.0.tgz","integrity":"sha512-O52TK7FHpBPzdtvc5GoF0EPLQIBMqrAupANPGBidPkrDpl9IXlzuma3T+m0o0OpkRVPmTu3SDoT7985lw4KbNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEObpHPgOEXJmplIb3fHix/dIZRrt1r7x1D7UePVEbnJAiEA8c5kuiIgAKoXV3Jqme6IT7diL+LocVVozVw6S7F+Wcg="}],"size":1848,"noattachment":false,"key":"/lazy-property/-/lazy-property-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"readme":"lazy-property\n=============\nAdds a lazily initialized property to an object.\n\n## Example\n\n```javascript\nvar addLazyProperty = require(\"lazy-property\")\n\nvar obj = {}\n\naddLazyProperty(obj, \"foo\", function() {\n  console.log(\"initialized!\")\n  return \"bar\"\n})\n\n//Access the property\nconsole.log(obj.foo)\nconsole.log(obj.foo)\n\n//Prints out:\n//\n//    initialized!\n//    bar\n//    bar\n//\n```\n\n## Install\n\n    npm install lazy-property\n\n## API\n\n### `require(\"lazy-property\")(obj, name, init[, enumerable])`\nAdds a lazily initialized property to the object.\n\n* `obj` is the object to add the property to\n* `name` is the name of the property\n* `init` is a function that computes the value of the property\n* `enumerable` if the property is enumerable (default `false`)\n\n## Credits\n(c) 2013 Mikola Lysenko. MIT License\n","publish_time":1398952754715,"_cnpm_publish_time":1398952754715,"dist-tags":{"latest":"1.0.0"}}