{"versions":{"0.1.1":{"name":"dot-component","version":"0.1.1","keywords":["dot"],"dependencies":{"type-component":"*"},"component":{"scripts":{"dot/index.js":"index.js"}},"devDependencies":{"mocha":"*","expect.js":"*"},"description":"MongoDB-style \"dot notation\" querying for JavaScript.","_id":"dot-component@0.1.1","dist":{"shasum":"d8208ce6b3a132f2a27f0dc9435597ee6fa7b7aa","size":2003,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dot-component/-/dot-component-0.1.1.tgz","integrity":"sha512-euYvVcF25tNYKAibjrmJfNUcUauI6dDmdhVM74n20KXETq5UonpY4Krg/w1Co6nHOI+Ze68aT8k2vx4e/28b+g=="},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"anonymous","email":"rauchg@gmail.com"},"maintainers":[{"name":"anonymous","email":"rauchg@gmail.com"}],"directories":{},"publish_time":1390849140876,"_hasShrinkwrap":false,"_cnpm_publish_time":1390849140876,"_cnpmcore_publish_time":"2021-12-16T20:29:31.274Z","contributors":[]},"0.1.0":{"name":"dot-component","version":"0.1.0","keywords":["dot"],"dependencies":{"type-component":"*"},"component":{"scripts":{"dot/index.js":"index.js"}},"devDependencies":{"mocha":"*","expect.js":"*"},"_id":"dot-component@0.1.0","description":"MongoDB-style \"dot notation\" querying for JavaScript.","dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dot-component/-/dot-component-0.1.0.tgz","shasum":"660b030a838db45da0889d4e0507523c5384c1b7","size":2007,"noattachment":false,"integrity":"sha512-Gbq6AH80L1QQER75UmyVR571VdbCL5EYGD3pihGP6jGhk9JQEKFM49RAjs2TrVHM5GzKxBZzpyBdiZI4gx/ULA=="},"_npmVersion":"1.1.59","_npmUser":{"name":"anonymous","email":"rauchg@gmail.com"},"maintainers":[{"name":"anonymous","email":"rauchg@gmail.com"}],"directories":{},"publish_time":1348771078866,"_hasShrinkwrap":false,"_cnpm_publish_time":1348771078866,"_cnpmcore_publish_time":"2021-12-16T20:29:31.525Z","contributors":[]}},"dist-tags":{"latest":"0.1.1"},"name":"dot-component","time":{"created":"2022-01-26T22:10:52.762Z","modified":"2022-01-26T22:10:52.762Z","0.1.1":"2014-01-27T18:59:00.876Z","0.1.0":"2012-09-27T18:37:58.866Z"},"readme":"# dot\n\n  MongoDB-style \"dot notation\" querying for JavaScript.\n\n## Installation\n\n```\n$ component install component/dot\n```\n\n## Example\n\n```js\nvar dot = require('dot');\nvar obj = {\n  name: {\n    first: \"tobi\"\n  },\n  pets: [\n    { id: 1, name: 'loki' },\n    { id: 2, name: 'jane' }\n  ]\n};\n\ndot.get(obj, 'name.first'); // tobi\ndot.get(obj, 'name.1.id'); // 2\ndot.parent(obj, 'name.first'); // obj.name\ndot.set(obj, 'name.1.name', 'Jane');\n```\n\n## API\n\n### get(obj, path)\n\n  Queries the given `path` in `obj`.\n\n### set(obj, path, val, init)\n\n  Sets the given `path` to `val` in obj.\n  If `init` is false it won't initialize the path if it doesn't exit.\n\n### parent(obj, path, init)\n\n  Returns the parent object/array that contains `path` within `obj`.\n  Could be `obj` itself. If `init` is true it initializes the path.\n\n## License \n\n  MIT","users":{}}