{"_id":"@aierse/json-extend","_rev":"7-495b9cb76525e8312b36bbcc0d25bf1a","name":"@aierse/json-extend","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@aierse/json-extend","version":"1.0.0","description":"Provides useful JSON tools.","author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","keywords":["json","format","extend","json flat","json filter","url param"],"gitHead":"6b574e87a74aacd1ff2815f2cf3efcf1a373680d","homepage":"https://github.com/Aierse/aierse-json-extend#readme","_id":"@aierse/json-extend@1.0.0","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-itr0zAdTxMu2iOFUtD5SUjeGIerWA71LeCOxdNLBiSufnz5EsYCWYx3zdWEkJEcsh4ezTI12+9UnmVBfkklQ4w==","shasum":"930f67b212eff562d9a61e14f9f2cfe14cd1bdfd","tarball":"https://registry.npmjs.org/@aierse/json-extend/-/json-extend-1.0.0.tgz","fileCount":4,"unpackedSize":2733,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFv2SyiYLgwzUXRa5uwMSOHx9kw/ba5VbVNEizx4MX3OAiEAxmhpPba9DIc6H4xhaztlgyPdo9QfIn/7bcyhX+8U0UY="}]},"_npmUser":{"name":"aierse","email":"dbsgur2008@gmail.com"},"directories":{},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-extend_1.0.0_1694667882244_0.4147533878975831"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aierse/json-extend","version":"1.0.1","description":"Provides useful JSON tools.","author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","keywords":["json","format","extend","json flat","json filter","url param"],"gitHead":"4447ad98d18697e15b36a056e68c94ffb6b4d900","homepage":"https://github.com/Aierse/aierse-json-extend#readme","_id":"@aierse/json-extend@1.0.1","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-esThhav9rGACii44eTQvMSpMXGfNzylzP7HV/netaAQJdazT8lzzluLIYGeu3ow4N6Ei2ZUriWpF4zYVl+OjQQ==","shasum":"daf2fef365998600d54e1c2e2f8d08a1832472dc","tarball":"https://registry.npmjs.org/@aierse/json-extend/-/json-extend-1.0.1.tgz","fileCount":4,"unpackedSize":3507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCoKTwnBauZsQmWV2XJSdSlFitegpfZHSrJynRmYsewwIgWulZPeKM8o1KPbzB+guPziRNkf9L2rN7ZylGFl4ItYU="}]},"_npmUser":{"name":"aierse","email":"dbsgur2008@gmail.com"},"directories":{},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-extend_1.0.1_1694668730784_0.49232743148390834"},"_hasShrinkwrap":false},"1.0.2":{"name":"@aierse/json-extend","version":"1.0.2","description":"Provides useful JSON tools.","author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","keywords":["json","format","extend","json flat","json filter","url param"],"gitHead":"b21cfaa2ddea530e459cdc331ef7437f849fbd69","homepage":"https://github.com/Aierse/aierse-json-extend#readme","_id":"@aierse/json-extend@1.0.2","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-8LGcSiXYiluewptR5b0I6SEgWzYJ0OoAcrg8nmKqwYGl5277BjFSdrljldueAuTak+X0mm507/Y3F9f42uh/Iw==","shasum":"7d52ff1d7085d0a5b397e941bf79d6a26b0392a1","tarball":"https://registry.npmjs.org/@aierse/json-extend/-/json-extend-1.0.2.tgz","fileCount":4,"unpackedSize":4146,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDH3GiqjNWacBWlzKjf5TMSgcPX/Owiuhivc2Wc225wJwIgRdyo9RGpfrVvPAKsu2RFUEqRKaoIhfbaCwCm89dOqq4="}]},"_npmUser":{"name":"aierse","email":"dbsgur2008@gmail.com"},"directories":{},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-extend_1.0.2_1694669915895_0.7431424262761566"},"_hasShrinkwrap":false},"1.0.3":{"name":"@aierse/json-extend","version":"1.0.3","description":"Provides useful JSON tools.","author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","keywords":["json","format","extend","json flat","json filter","url param"],"gitHead":"669539c27152924c905a138914ef402acbe4b05e","homepage":"https://github.com/Aierse/aierse-json-extend#readme","_id":"@aierse/json-extend@1.0.3","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-FN4ELnfirE+drhKCVrRMMOLP86Ner4yOvA3JTW3Du+zspaRDw1WuRoWCeWfeFfHnX6aFe67uJ6fFyMqbUJtx2w==","shasum":"69fdf43701225199a2c83ae868d9084d49e349ce","tarball":"https://registry.npmjs.org/@aierse/json-extend/-/json-extend-1.0.3.tgz","fileCount":4,"unpackedSize":4223,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAYIVTWe4C53lSrFOvHWFaAXK0Ug8FFb9EwLCUS2COZwIhAMZeznNK872bdgiPpIGlObQfb7hKGMmDT8p05uON8eFl"}]},"_npmUser":{"name":"aierse","email":"dbsgur2008@gmail.com"},"directories":{},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-extend_1.0.3_1695110731352_0.629912721371922"},"_hasShrinkwrap":false},"1.0.4":{"name":"@aierse/json-extend","version":"1.0.4","description":"Provides useful JSON tools.","author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","keywords":["json","format","extend","json flat","json filter","url param"],"gitHead":"00197903f7d517bd28070c6e36e72c0f71cc4b98","homepage":"https://github.com/Aierse/aierse-json-extend#readme","_id":"@aierse/json-extend@1.0.4","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-6o6m5iZMiPYAScZZ0p6WV2p+QXmUWCxxy5gRQ1kBeXgnSiaouBU7gNotdihtHBKqkyIgcPw8AtHEk5kF2Bci2w==","shasum":"62a1e795857e3b53d51dc551446107d0feea1756","tarball":"https://registry.npmjs.org/@aierse/json-extend/-/json-extend-1.0.4.tgz","fileCount":4,"unpackedSize":4925,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFQS45kMCJp6p0mueZkQzjiFkWIizsef7RiO8pHn3CeAiAZYMbqyWrxEbNIIdzfwSQvztFNPF2BTgn3S7pf3ZbmAQ=="}]},"_npmUser":{"name":"aierse","email":"dbsgur2008@gmail.com"},"directories":{},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-extend_1.0.4_1696384226682_0.3116821279898614"},"_hasShrinkwrap":false},"1.0.5":{"name":"@aierse/json-extend","version":"1.0.5","description":"Provides useful JSON tools.","author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","keywords":["json","format","extend","json flat","json filter","url param"],"gitHead":"00197903f7d517bd28070c6e36e72c0f71cc4b98","homepage":"https://github.com/Aierse/aierse-json-extend#readme","_id":"@aierse/json-extend@1.0.5","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-7jubR13vGvTNLQS/dhPShbbLpm3wr7Z6hO0Y3VTB+ZTcliWbqGFFR1f3N8gFasgj0Ifa5afUuCBgklGC0RwZkg==","shasum":"48e20c4b598fe7b5f228a2c7c0dcce23a51aa662","tarball":"https://registry.npmjs.org/@aierse/json-extend/-/json-extend-1.0.5.tgz","fileCount":4,"unpackedSize":5261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDv6Y3YNDQIt0qUSeXsvjWO/5Jpc4pVkAaaYDNtpKR8aAiEAi5UxeYHw6HTYYkOJKvlx5qIKzrLq3ZouWyhB4uCT50M="}]},"_npmUser":{"name":"aierse","email":"dbsgur2008@gmail.com"},"directories":{},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-extend_1.0.5_1697510505040_0.4377690191315713"},"_hasShrinkwrap":false},"1.0.6":{"name":"@aierse/json-extend","version":"1.0.6","description":"Provides useful JSON tools.","author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","keywords":["json","json function","url","parameter","format","extend","json flat","json filter","json initialize","json reverse"],"gitHead":"719b00e481a6286e6ccb6adf6a2f5df5a7f84012","homepage":"https://github.com/Aierse/aierse-json-extend#readme","_id":"@aierse/json-extend@1.0.6","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-qKrvY3mUQ3qNb5JBCFIWDJJuT4QDYhTkFalNwk1/tsDSXrBHxZ5MtWbUpKda0aBdcfy7FUKHYlGT6Wh0lDMAYw==","shasum":"36c5ac11ce0be7ff92b760d902983c631ff47b9d","tarball":"https://registry.npmjs.org/@aierse/json-extend/-/json-extend-1.0.6.tgz","fileCount":4,"unpackedSize":5780,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCe6Ukfwx4GX47yjWMeKWsCXgvjim1ABDaN9XQ3uL1pIQIgGAiO5zGYvIITO6R4FOKuvacv2nwsleQNPRy6Vd4/dE4="}]},"_npmUser":{"name":"aierse","email":"dbsgur2008@gmail.com"},"directories":{},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-extend_1.0.6_1697532296596_0.7546700715350823"},"_hasShrinkwrap":false},"1.1.0":{"name":"@aierse/json-extend","version":"1.1.0","description":"Provides useful JSON tools.","author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","keywords":["json","json function","url","parameter","format","extend","json flat","json filter","json initialize","json reverse","json groupBy","json sort"],"gitHead":"dba31212dec02ac6b44be831df4a18bda4f03011","homepage":"https://github.com/Aierse/aierse-json-extend#readme","_id":"@aierse/json-extend@1.1.0","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-TMnD6CZbBSSeXR+YwcsgYukFBBujk1uBkBmkL0wiwwlleuZV/iafU1/55cF/gYVfXix7TnfB7j4YLUnwmGbrZw==","shasum":"60651f0618cce19380fb511ca746d254bb79509a","tarball":"https://registry.npmjs.org/@aierse/json-extend/-/json-extend-1.1.0.tgz","fileCount":4,"unpackedSize":6677,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQQFmAe0tiXUYOZZSu1eHenkLonJm54HKNJfhx3ioxKAIgAOHBDvHHze0H04bQOvJ4cABxolllQDBjLd0cevB4gHQ="}]},"_npmUser":{"name":"aierse","email":"dbsgur2008@gmail.com"},"directories":{},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-extend_1.1.0_1697767590364_0.9514933549194613"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-14T05:04:42.118Z","1.0.0":"2023-09-14T05:04:42.424Z","modified":"2023-10-20T02:06:30.725Z","1.0.1":"2023-09-14T05:18:50.935Z","1.0.2":"2023-09-14T05:38:36.050Z","1.0.3":"2023-09-19T08:05:31.512Z","1.0.4":"2023-10-04T01:50:26.874Z","1.0.5":"2023-10-17T02:41:45.243Z","1.0.6":"2023-10-17T08:44:56.792Z","1.1.0":"2023-10-20T02:06:30.547Z"},"maintainers":[{"name":"aierse","email":"dbsgur2008@gmail.com"}],"description":"Provides useful JSON tools.","homepage":"https://github.com/Aierse/aierse-json-extend#readme","keywords":["json","json function","url","parameter","format","extend","json flat","json filter","json initialize","json reverse","json groupBy","json sort"],"repository":{"type":"git","url":"git+https://github.com/Aierse/aierse-json-extend.git"},"author":{"name":"Aierse","email":"dbsgur2008@gmail.com"},"bugs":{"url":"https://github.com/Aierse/aierse-json-extend/issues"},"license":"MIT","readme":"# @aierse/json-extend\r\n\r\nProvides useful JSON tools.\r\n\r\n# Installation\r\n\r\n> npm i @aierse/json-extend\r\n\r\n# Usage\r\n\r\n```js\r\nimport JSONExtend from \"@aierse/json-extend\";\r\n\r\nconst json = {\r\n  required: {\r\n    id: \"test\",\r\n    password: \"test\",\r\n  },\r\n  notRequired: {\r\n    phone: \"010-1234-5678\",\r\n    memo: \"\",\r\n    etc: undefined,\r\n  },\r\n};\r\n\r\n// JSON makes flat\r\njson = JSONExtend.flat(json);\r\n/*\r\n{\r\n    id: \"test\",\r\n    password: \"test\",\r\n    phone: \"010-1234-5678\",\r\n    memo: \"\",\r\n    etc: undefined,\r\n}\r\n*/\r\n\r\n// Remove targets\r\njson = JSONExtend.filter(json, [null, undefined, \"\"]);\r\n/*\r\n{\r\n    id: \"test\",\r\n    password: \"test\",\r\n    phone: \"010-1234-5678\",\r\n}\r\n*/\r\n\r\n// JSON makes URL parameter\r\nconst param = JSONExtend.urlParameter(json);\r\n/* id=test&password=test&phone=010-1234-5678 */\r\n\r\n// JSON (key: value) convert to (value: key)\r\n// Be careful, Same value causes bug\r\nconst reverse = JSONExtend.reverse(json);\r\n/*\r\n{\r\n    test: \"password\",\r\n    \"010-1234-5678\": \"phone\"\r\n}\r\n*/\r\n\r\nconst initialize = JSONExtend.initialize([\"a\", \"b\", \"c\"], 0);\r\n/*\r\n{\r\n    a: 0,\r\n    b: 0,\r\n    c: 0\r\n}\r\n*/\r\n\r\nconst items = [\r\n  {\r\n    value1: 0,\r\n    value2: 0,\r\n    time: \"2023-10-19\",\r\n  },\r\n  {\r\n    value1: 1,\r\n    value2: 1,\r\n    time: \"2023-10-19\",\r\n  },\r\n  {\r\n    value1: 2,\r\n    value2: 2,\r\n    time: \"2023-10-20\",\r\n  },\r\n  {\r\n    value1: 3,\r\n    value2: 3,\r\n    time: \"2023-10-21\",\r\n  },\r\n];\r\n\r\n// JSON groupBy\r\nconst groupBy = JSONExtend.groupBy(items, \"time\");\r\n/*\r\n{\r\n  '2023-10-19': [\r\n    {\r\n      value1: 0,\r\n      value2: 0,\r\n      time: '2023-10-19'\r\n    },\r\n    {\r\n      value1: 1,\r\n      value2: 1,\r\n      time: '2023-10-19'\r\n    }\r\n  ],\r\n  '2023-10-20': [\r\n    {\r\n      value1: 2,\r\n      value2: 2,\r\n      time: \"2023-10-20\",\r\n    }\r\n  ],\r\n  '2023-10-21': [\r\n    {\r\n      value1: 3,\r\n      value2: 3,\r\n      time: \"2023-10-21\",\r\n    }\r\n  ]\r\n}\r\n*/\r\n```\r\n","readmeFilename":"README.md"}