{"name":"lazy-property","version":"0.0.1","description":"Lazily initialized properties for objects","main":"lazyProperty.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tap 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"},"_id":"lazy-property@0.0.1","dist":{"shasum":"75a97bda5ea4a39df1faac7fec7f06e48986f5e3","tarball":"http://registry-npm.ywwl.com/lazy-property/download/lazy-property-0.0.1.tgz","integrity":"sha512-Fyd+qYK+r/KsWaoqdaj5P4htUTtjYCY7Uakc3RCdxgCI2LEhSH9sr8cZcyQKLlfIvQ4r0wMdSerCGGfMwOii3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmetzU7LwDUTTMmJ00TOeMaDFEKH/8Y7nbcPBjJJGu+wIgQxvveCM7i1Nvbrgfpj97Vb1TkVlXJw/v2XGSt/WyLds="}],"size":1783,"noattachment":false,"key":"/lazy-property/-/lazy-property-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.24","_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":1373672671704,"_cnpm_publish_time":1373672671704,"dist-tags":{"latest":"1.0.0"}}