{"name":"just-safe-set","version":"2.2.2","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.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"angus-c","email":"anguscroll@gmail.com"},"dist":{"integrity":"sha512-mRI+4M6DPg/eUaqXQkt5hdlY3oSRKtWtQdZA5NDKyfvCEtVaeObBnFPJmVDdJC6cSIosws5PvLuyw9wJihjeFQ==","shasum":"c4b026e34bc757c3bae956aa7eb4a9f8f6796ef6","tarball":"http://registry-npm.ywwl.com/just-safe-set/download/just-safe-set-2.2.2.tgz","fileCount":6,"unpackedSize":4457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg03FsCRA9TVsSAnZWagAA2jgP+wXHkfDNcF6d184nM2ul\nSCAXHcwDCs5urrkrguvphMYH8LNkvSuaOZiU2kQl9n56zMykmr54pSj1XVv3\n2QDBpGKhbru2zYFN2y3eZ9AR7oBl5TX0X3NSkXr6Uh1tXv0Mxt+gWaLzIUHZ\nO3mFiI99zZMU8Z0PVgMdyvjKgmctCtY4bNOBd6fUje8dQHb1SbN9je1ZKHPl\nkwCvuysDasbQrIbYjPyiwYRPjtPkpv0eteTOLLyD4Z2PAyBB34Bz5p4f+2da\niMYq0C4K+tLL8E7ELJHDO8VbwEovcY4cC93dx6XXdNTw6Qh+pbAEaAHxb6KK\nKDsYeJfuw84JfddFQU6G7dp5J69E+sMl3v7igx4iHI69jqxwAKPiPJw4/+0V\nddg1I/5GJsFcLL9dYccY4rqmh2ETPQkD8DncQ/T3GrDS/LtFRyeaZpyGip7W\nXwZe/82RC5c5/C3tH5G6FySGY7VfQbJ7q8n/JL0PUzmjYUIOJdIpskg17xJe\nT6feMxrfYIDMXpJIqG2xBbRRzeMteXwHWA/QYZDH/2p0bn8zO5u4FMbcFtim\n/vRhDH6FG1506s+whTTlYJeK8hnfz60ALZ1SOJMKVO8I6QtEI2uUT+IyN58t\no+nwJQMOTgzWIcH9+8imL5PEiR7WJ7cHul1VYcoYpruyNrRYs5kNuFny0ukk\nyCfz\r\n=Kbqo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCexBNIXP1A44UpsSmnOY60sWzLo+qCoYTS5DgNhQdLvwIhAOAxOBhRvYWsbhhGTGlBu6r+GCxMAUVguIVt31zAlphE"}],"size":2177,"noattachment":false,"key":"/just-safe-set/-/just-safe-set-2.2.2.tgz"},"directories":{},"maintainers":[{"name":"angus-c","email":"anguscroll@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-safe-set_2.2.2_1624469868284_0.12602699185553123"},"_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":1624469868416,"_cnpm_publish_time":1624469868416,"dist-tags":{"latest":"4.2.1"}}