{"name":"just-safe-set","version":"2.2.0","description":"set value at property, create intermediate properties if necessary","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/angus-c/just.git"},"keywords":["object","safe","set","no-dependencies","just"],"author":{"name":"Angus Croll"},"license":"MIT","bugs":{"url":"https://github.com/angus-c/just/issues"},"homepage":"https://github.com/angus-c/just#readme","_id":"just-safe-set@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"integrity":"sha512-4odK9bcSAh2R4U6xa/hoVdLc3Vu/5umW/9JOlrLrX2PDMH9VDzPvIQqXV1eGWkw7fU0RkpflCABhnSdEpBRs1A==","shasum":"c9914bf2463e49a395c18cb20fcd0b4b75b28114","tarball":"http://registry-npm.ywwl.com/just-safe-set/download/just-safe-set-2.2.0.tgz","fileCount":6,"unpackedSize":4189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgaiUbCRA9TVsSAnZWagAAyGgP/iamT2qJ3pLlY9/hyRbZ\n9X5Pj/PN0RD5V9HtNL21c4JWy1cuiuqMsfX85xQ8fipZ60fC3AEVz6Pnj73/\ngfa0GEH5x4d9oAeMQH7tf+ReFrJqso77rdCkfl8rWvbvneqZXWTn8OlJ/Mj0\n7hYFUbm15sAjtqLMCJmT7iiLuwWYWwZrxvHBkTBOs5FTuhimAh0PITvs0W5q\n9eavBvnCr9vrDjuK9tJGHx4IA6omZahGKHO7O2/e5WE40halk3DDvsfs9wIH\nJk9cqwV3AEiFB1CsnVXmNm9RcvnBEBWmT7cwi54J+hjNJSEx5fh5YfCydEz8\n69t7q+fOVCw4SsN1iACMMQ8mofIJ7ZqYuO1U1G/b02b0u+MRQdVkEIQCxYo1\nKzEvg8uVLcvw3JZCZ4EyTZNUUR41LNU7wG9XUfYTvASwoDUYLNnHOA0Ybiyq\npzzDdInRsMqwnBEbfPjA/hLCZ8aonbg1CpNhJBEJFKV+Ebq3lyWWuEZUmasz\nTnwhXp2v8QUrfWDtsJN8vAq/EwM02tEB1RENQqvOzjEfEzHt0GazVaxSFu3V\nEpYblw7RVZrDlvw6Ea8XA3hcbpq6TO9DbODn4tTHDuR4dWWOSsP6t6BH6KZ0\n0bIPKIYzamWFH1q5O4X3wutWS/SyWZBJQ/jLkwEndlHdJ9uWoWcRAaTJrLsl\nSmi4\r\n=7sCb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFcAIP7wVHotywq6v0K5+oN9OGSemcizwvq+W/qencwFAiAlLMPgF3vf/BXFKh8Dd/mnaO9+T9mtelYzmHvwAjKnUA=="}],"size":2075,"noattachment":false,"key":"/just-safe-set/-/just-safe-set-2.2.0.tgz"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-safe-set_2.2.0_1617569051499_0.21740667721249118"},"_hasShrinkwrap":false,"readme":"<!-- DO NOT EDIT THIS FILE! THIS FILE WAS AUTOGENERATED BY TEMPLATE-MATE -->\n<!-- SEE https://github.com/angus-c/just/blob/master/CONTRIBUTING.md#readme-template -->\n\n## just-safe-set\n\nPart of a [library](https://anguscroll.com/just) of zero-dependency npm modules that do just do one thing.\nGuilt-free utilities for every occasion.\n\n[`🍦 Try it`](https://anguscroll.com/just/just-safe-set)\n\n```shell\nnpm install just-safe-set\n```\n```shell\nyarn add just-safe-set\n```\n\nSet value at property, create intermediate properties if necessary\n\n```js\nimport set from 'just-safe-set';\n\nconst obj1 = {};\nset(obj1, 'a.aa.aaa', 4); // true\nobj1; // {a: {aa: {aaa: 4}}}\n\nconst obj2 = {};\nset(obj2, ['a', 'aa', 'aaa'], 4); // true\nobj2; // {a: {aa: {aaa: 4}}}\n\nconst obj3 = {a: {aa: {aaa: 2}}};\nset(obj3, 'a.aa.aaa', 3); // true\nobj3; // {a: {aa: {aaa: 3}}}\n\nconst obj5 = {a: {}};\nconst sym = Symbol();\nset(obj5.a, sym, 7); // true\nobj5; // {a: {Symbol(): 7}}\n```\n","publish_time":1617569051601,"_cnpm_publish_time":1617569051601,"dist-tags":{"latest":"4.2.1"}}