{"name":"just-safe-set","version":"4.2.0","description":"set value at property, create intermediate properties if necessary","type":"module","exports":{".":{"types":"./index.d.ts","require":"./index.cjs","import":"./index.mjs"},"./package.json":"./package.json"},"main":"index.cjs","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup -c"},"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"},"gitHead":"192fc6b964b038757e30d239a1f3547c9eb6e30f","homepage":"https://github.com/angus-c/just#readme","_id":"just-safe-set@4.2.0","_nodeVersion":"12.22.6","_npmVersion":"8.1.3","dist":{"integrity":"sha512-109CZyFYcRAgR5hT/aA6V6ZKUfxItJYrZvtTikfIJ4sEewAE86fQARiF9BFzZlSn0gTLVGIMuZC7le2qQ+JJKw==","shasum":"826567557ece14f73843a55868e3c8a05ef92785","tarball":"http://registry-npm.ywwl.com/just-safe-set/download/just-safe-set-4.2.0.tgz","fileCount":9,"unpackedSize":7201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSN6Sa83oUp+Tp7IOgNRVWNKE/OmMHL9xlzaHa9V1MYAiEAugfjei/Rl3F+5VzSQShZ8R97VfPq5CEcf2l/1T+5Kkc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjni5MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvWA/+K2XP9kduD/4wxZwBafPTB5p4r0VcWFsgbYy1atUBVOVir+ga\r\n6lCJVChupTZYyTRwZfelU11clHE25IShbL0mECe/RPf80gZ/5VcSQpMwBqXM\r\nWoliirwcDcZ2h8raiQpfNROyxnmGPqN1WRHHQ53j92CfmpL1mYUmblfbu7Kd\r\nLvWq4x4bCJfp4+6B/k6f3xKOI7Z7MHlwqegOJpYOI6J/yWRXnRX3E0mw1FUU\r\noOhHAgawZ+Gsl0v9iBr/NLhg3ikUKHLQcDqF2Ogdl1iyLjI7qjiKE6r5dkjB\r\n84ZowdKuCL5UVDRyqjNswIi9UGMRfmmj0cV7VJjDwa/m1jtXko/5IIcQRS8l\r\nuyt1gdOEkhGWU9jrVzLk0ev/JhqceYh9HsV3CMjiFW+lQTG5pv+W6RqDNdly\r\n+hldvx2i1fS+PxOa2fcjerUuwRQbALNPxPCQm/3Pkdvr3HBA1plbGiHavCWE\r\nuTtS6jvtyxtYf98kHlKVispyskXjJ+oUlU0xzqLLVphwQiqrsOZtxYE5twml\r\nkgix9yxIJmER7OzHZMwpK+mAKzDN1qFu6PYDqNlnfOIsHD7sFsb43L/Ei0/w\r\nd2Rd1fJfzmkcuIiLiV+N2SVukVgGwmD/dwiojAfP5aKHQgTa9/eX9KWdG4Rq\r\nIoyMQq8xtbRwhlg1elFz91Rs1geoLzP8JSo=\r\n=dQ5r\r\n-----END PGP SIGNATURE-----\r\n","size":2722,"noattachment":false,"key":"/just-safe-set/-/just-safe-set-4.2.0.tgz"},"_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-safe-set_4.2.0_1671310924205_0.2985826174946127"},"_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":1671310924358,"_cnpm_publish_time":1671310924358,"dist-tags":{"latest":"4.2.1"}}