{"_id":"obj-util","_rev":"5-d7d2bef6a2019d15bac0b20fab927b33","name":"obj-util","description":"A simple helper to set/get keys from objects using a string path like 'some.key.here'","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"obj-util","version":"1.0.0","description":"A simple helper to set/get keys from objects using a string path like 'some.key.here'","main":"index.js","scripts":{"test":"test"},"repository":{"type":"git","url":"https://github.com/royriojas/obj-util.git"},"keywords":["obj","util","setKey","getKey","set","key","using","path"],"author":{"name":"Roy Riojas"},"license":"MIT","bugs":{"url":"https://github.com/royriojas/obj-util/issues"},"homepage":"https://github.com/royriojas/obj-util","gitHead":"ff8bab4d4d3d594005bff44a0601bbd79b1d7dd0","_id":"obj-util@1.0.0","_shasum":"9b79008288210a92f436d9104e9c1820c56ea6cf","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"9b79008288210a92f436d9104e9c1820c56ea6cf","tarball":"https://registry.npmjs.org/obj-util/-/obj-util-1.0.0.tgz","integrity":"sha512-19Favu+4DrQaDmFOhuPrHgbSpnL26g9f52oqtL6Y9QVemZ34JADkrVGVZvFsuNtnOW32ywL/nsQHAWsG7l6HTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYZmTv79VaDjxRi0BMiRtIQ6HNrIKiy2Th1llBQdhK+wIhAOH9rj7xPyC9zx1Sbp/PxrYmBGIB6vBeR3RkVnHc2Wuf"}]}},"2.0.0":{"name":"obj-util","version":"2.0.0","description":"A simple helper to set/get keys from objects using a string path like 'some.key.here'","main":"index.js","scripts":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/royriojas/obj-util.git"},"keywords":["obj","util","setKey","getKey","set","key","using","path"],"author":{"name":"Roy Riojas"},"license":"MIT","bugs":{"url":"https://github.com/royriojas/obj-util/issues"},"homepage":"https://github.com/royriojas/obj-util","gitHead":"5df4440a1b8728ffa32b459b672e79902d0b0b3f","_id":"obj-util@2.0.0","_shasum":"491f241256aa182498ab43b8660b14eaf625028a","_from":".","_npmVersion":"3.5.0","_nodeVersion":"5.1.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"491f241256aa182498ab43b8660b14eaf625028a","tarball":"https://registry.npmjs.org/obj-util/-/obj-util-2.0.0.tgz","integrity":"sha512-dsqymm1B0DTd3S67DTP2BFFkYsf3m3S6Q9hyqtn+OHoVLaq/e1tnU2e22dM+zHPKnOyUGb2VqMD74xYe40UWJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwUxTI/X+AA/CXXE5RyEVbE5XaaSYL4khDTYcCo86y6wIgd/dgY6u9mZDxgsjYUrTtAy0Z1+yhNmJ7gQLR7h9iTIQ="}]}}},"readme":"# obj-util\n> A simple helper to set/get keys from objects using a string path like 'some.key.here'\n\n## Install\n\n```bash\nnpm i --save obj-util\n```\n\n## Usage\n\n### obj.getKeyValue \n\nReturns the value from the given object which matches the passed key\n- **param** obj {Object} The object to get the values from\n- **param** key {String} a string representing a key in the object. Subkeys are supported separating them with dots. i.e. `key1.subkey1.subsubkey1`\n- **returns** {Mixed} the value of the given key in the passed obj\n\n```javascript\nvar objUtil = require('obj-util');\n\nvar obj = {\n  some: {\n    key: 'some value'\n  }\n};\n\n// getKeyValue\nobjUtil.getKeyValue(obj, 'some.key'); // 'some value'\n```\n\n### obj.setKeyValue\n\nSets a value in an object if a matching key is found inside the given object\n\n- **param** obj {Object} the object where to set the value using if the key is found\n- **param** key {String} a string that represents the key. Subkeys are supported by separating them with dots.\n- **param** val the value to be set in the object\n\n```javascript\nvar objUtil = require('obj-util');\n\nvar obj = {\n};\nobjUtil.setKeyValue(obj, 'some.key', 'some value');\nobj.some.key === 'some value' //==> true\n```\n\nThat's it!","maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"time":{"modified":"2022-06-22T16:15:33.220Z","created":"2015-03-09T06:36:37.561Z","1.0.0":"2015-03-09T06:36:37.561Z","2.0.0":"2015-12-23T00:33:22.510Z"},"homepage":"https://github.com/royriojas/obj-util","keywords":["obj","util","setKey","getKey","set","key","using","path"],"repository":{"type":"git","url":"git+https://github.com/royriojas/obj-util.git"},"author":{"name":"Roy Riojas"},"bugs":{"url":"https://github.com/royriojas/obj-util/issues"},"license":"MIT","readmeFilename":"README.md"}