{"_id":"dprop","_rev":"3-a3da20c9ccac865c2a1488c871abc0e8","name":"dprop","description":"tiny util for making enumerable properties","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"dprop","version":"1.0.0","description":"tiny util for making enumerable properties","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{},"devDependencies":{"tape":"^4.0.0"},"scripts":{"test":"node test.js"},"keywords":["prop","property","prototype","define","defineProperty","defineProperties","enumerable","configurable"],"repository":{"type":"git","url":"git://github.com/mattdesl/dprop.git"},"homepage":"https://github.com/mattdesl/dprop","bugs":{"url":"https://github.com/mattdesl/dprop/issues"},"gitHead":"514068842138198dda792abce09747c625fb6f00","_id":"dprop@1.0.0","_shasum":"5f45a60a60fa3ac1d0f68b6b435831f2ff665468","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"5f45a60a60fa3ac1d0f68b6b435831f2ff665468","tarball":"https://registry.npmjs.org/dprop/-/dprop-1.0.0.tgz","integrity":"sha512-CNrGk9cBoRzsLtyGRTcjsYh0n63nLtnWelCV31DlEK/yftX05rLK7qb9et891DYLUwhadlh/lOxq7W/+8XA2pQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYT7Dpbf+lxaILSyfDH6kf6V2rAQfybi06ISKM4XEsKQIgJ0ffQiKmLNnzg7qI1QGVAg2tcY74DNI1krIrTJGFW40="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]}},"readme":"# dprop\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nStupidly small utility for making enumerable and configurable getter/setter objects, because ES5 is annoying.\n\nBefore:\n\n```js\nObject.defineProperties(obj, {\n  foo: {\n    configurable: true,\n    enumerable: true,\n    get: function() {\n      return 'blah'\n    }\n  },\n  bar: {\n    configurable: true,\n    enumerable: true,\n    get: function() {\n      return 'foobar'\n    }\n  }\n})\n```\n\nAfter:\n\n```js\nvar getter = require('dprop')\n\nObject.defineProperties(obj, {\n  foo: getter(function() {\n    return 'blah'\n  }),\n  bar: getter(function() {\n    return 'foobar'\n  })\n})\n```\n\n## Usage\n\n[![NPM](https://nodei.co/npm/dprop.png)](https://www.npmjs.com/package/dprop)\n\n#### `dprop([get], [set])`\n\nReturns a `{ configurable: true, enumerable: true }` object with the specified (optional) `get` and `set` functions.\n\n## See Also\n\n- [d](https://www.npmjs.com/package/d) - a little more feature rich\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/dprop/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-15T23:23:55.469Z","created":"2015-05-24T23:13:30.237Z","1.0.0":"2015-05-24T23:13:30.237Z"},"homepage":"https://github.com/mattdesl/dprop","keywords":["prop","property","prototype","define","defineProperty","defineProperties","enumerable","configurable"],"repository":{"type":"git","url":"git://github.com/mattdesl/dprop.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"bugs":{"url":"https://github.com/mattdesl/dprop/issues"},"license":"MIT","readmeFilename":"README.md"}