{"name":"just-safe-set","version":"4.0.2","description":"set value at property, create intermediate properties if necessary","main":"index.js","module":"index.mjs","exports":{".":{"require":"./index.js","default":"./index.mjs"}},"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":"117c89ea58707f3baa9690973c95694db643db27","homepage":"https://github.com/angus-c/just#readme","_id":"just-safe-set@4.0.2","_nodeVersion":"12.22.6","_npmVersion":"8.1.3","dist":{"integrity":"sha512-tAIYsHB6pC7o2/+UtquHOYT4jaboA97W+9nYij0boNnjK66G5avPZpHYIpj99dCzOSNWBO8/+k9+gdgadHF2Mw==","shasum":"554225c2a03785db645914d993d9de8a69f762cc","tarball":"http://registry-npm.ywwl.com/just-safe-set/download/just-safe-set-4.0.2.tgz","fileCount":8,"unpackedSize":6904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2k1fCRA9TVsSAnZWagAA4UgP/3lNdiN3ccFbTWir9xRL\n0YKfysGE38njPXvrdUG8tGlHp8QfYAWNOidrZ9z6gz43xPTvA3T7juVwaYAe\nkbXUSZ4j1H7fBhAzZBSa0PGsxKk1fDIiekhQJeOQnWvIsVDEqmAHcX2z1/Rp\ndZPKUysj/ygxFqzC1JE+EIEdj5OWf6950zaDunFX+y36TZSpJpfqwQLJxiC7\nT9ezIdMDH1k7RD0A9WZ5D2B4slnGDoJvgc/GujDmgw+HjIeHuyn17iTatuFk\n+SKhWbaVKVOHVqLzXsDVon03vJXWzBDKIcO9MxuzMzKrCvSTBGskQLPdKmxZ\nOf2mSDhFp2+TxpkeHsAKkD0khxKJICXegWFpE1MaWgLFC59PamrHK0Hec0jZ\niE0qNxQ/wU+c5RHrlhdt5OWselB66wPXRov/ktD49m5+luZ/teWuGlZ7Tc7H\nMrgi+uaDxn9E/Lru3XjAWYDI1MppCDzDjZecGo8CWpriqPu2RJ/dEQ1+jHH8\n4aw4GvLEdL/+hxKbzMPIcdB44qdZvo+kBSv1rVM7446IEZ8MEuHg7Ex04ht4\ncw7QKsfvYeoSvn52HM81jdkX3ahWDTxmaAJ/CRoVlR4LhndclUNpH5EPfdtn\n1YHt+ahVsdnni2wEwMFI2tIajfIoVyPHiPmy3vNMIUH1Ffp0vNL+XzQT04N6\n9hv0\r\n=W70+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHuml/aUYrL38Zg7Lbjbh1KrdRFhPJ6DJuxr07jzq37nAiB05OrYm99+NyosXaI6Qc4UbiXjGGHqInPTBpR0OsWVUA=="}],"size":2564,"noattachment":false,"key":"/just-safe-set/-/just-safe-set-4.0.2.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.0.2_1641696607210_0.25743698357310074"},"_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":1641696607381,"_cnpm_publish_time":1641696607381,"dist-tags":{"latest":"4.2.1"}}