{"name":"just-safe-set","version":"2.2.3","description":"set value at property, create intermediate properties if necessary","main":"index.js","types":"index.d.ts","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.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"integrity":"sha512-6zAkfGKRjB766zXv/UVSGOFKSAqakhwLQDyIR9bmIhJ/e6jS3Ci1VxYTqaiooYZZUw3VLg0sZva8PE6JX/iu2w==","shasum":"b717b71a7237ff9f4b9d1220128a576001a11535","tarball":"http://registry-npm.ywwl.com/just-safe-set/download/just-safe-set-2.2.3.tgz","fileCount":6,"unpackedSize":4667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLS7sCRA9TVsSAnZWagAA6fgP/RaaG3/nMAj/ZrBjpd2D\n4IaVj0wfDAtY4l1tSeXSVJ7EE+3etF4tYY9aquBBVJoAaBxkS+0Z1oKskaup\njZgyywm6SRTFlmLfW3e3T5m97Z2bTACmaXum4YXQKdJ9DRGKahOzl5qGvA7G\n3nS9F0Nsi/a+0kNP3v0+Sr6bADE0AyEZTOepp3LvSqN/JaOCyc/OaGnoVq2n\nZroi1T+KdG+8PhESR1mJv2gnzRVT42kTHMUkDbcoTv2hZ/lqwDn4Z02ZoHYd\n0HGXIXarL0whfYbrAiGlLjO+J7D+T9NX6gTcvP8qrQKWCUP8CXAfneqBymjP\n/fmWvevJAqEoK59q/GoDPxNF7Gy8FJzK0RHHbOfFV0zjGAgB0cHWlO/MF1Aj\nHlOFEARUJaV+7dZTpPwk47WyQEaLL04Txv5rEf0UHfLXnj9H7qBNr+4mPG0+\nyXBme1C5+wfXW9WHvBBxUP6FA8ahd7MVGEQA9/wztL56ovtRLI3VC3Jch4Ho\nfE/hwASoKoLGTjDLRtr3z4uxntlGlizOSoKO1WJF1QDYujUwowouu/4/PbP3\ncFWswAY5F7f+sw6rh6Bg8LrV7tvdkHSk9yrRCYi1MWaM19LmAWZBS99geqr1\npi5KP9XBIgKFL+ZDeFS8P39saOhblmf8t3hkaoeznb/ai8f7SMHSJVX45wBf\nt0kl\r\n=/1mc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRhjazokTCIVSwQdr7ihd4f40qjxPA0XtnwnhiMbVruQIhAM+YuN1Dtu5rWZeem564jFb5fSR6oohgHVT7SGuSfyUL"}],"size":2244,"noattachment":false,"key":"/just-safe-set/-/just-safe-set-2.2.3.tgz"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-safe-set_2.2.3_1630351084541_0.5813060776261403"},"_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":1630351084670,"_cnpm_publish_time":1630351084670,"dist-tags":{"latest":"4.2.1"}}