{"_id":"@4kizuki/flatten-react-providers","_rev":"2-66661eb4e7be9346a6968a53c2f35c76","name":"@4kizuki/flatten-react-providers","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@4kizuki/flatten-react-providers","version":"1.0.0","type":"commonjs","main":"./src/index.js","types":"./src/index.d.ts","peerDependencies":{"react":"^18.0.0"},"publishConfig":{"access":"public"},"_id":"@4kizuki/flatten-react-providers@1.0.0","gitHead":"1f13d35e0558a3b1de362dce47a653380109eab3","description":"A library to flatten multiple React providers into a single provider for better readability and diff friendliness.","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Ov9Mukl0Ma7al/LXwyKUdBm3ha/NpKdjkyCuPPAQhhpqPG2wz+S07kwxr17jRzRBLlB/I0uM3jAixzXC/JEOJQ==","shasum":"8f34d56a2617e57e9644d06e560fd89b584500a0","tarball":"https://registry.npmjs.org/@4kizuki/flatten-react-providers/-/flatten-react-providers-1.0.0.tgz","fileCount":8,"unpackedSize":4704,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB83KMNrOEij1D6MTmQwC9rYY8BgOID6/hpwSnlTsklSAiEAnu87Xg9HmbffODnKO41hs1AkPhD2SuNyjxWJ2rYwGa4="}]},"_npmUser":{"name":"4kizuki","email":"4kizuki@h4dz.io"},"directories":{},"maintainers":[{"name":"4kizuki","email":"4kizuki@h4dz.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flatten-react-providers_1.0.0_1712753844445_0.6409431780867432"},"_hasShrinkwrap":false},"1.0.1":{"name":"@4kizuki/flatten-react-providers","version":"1.0.1","type":"commonjs","main":"./src/index.js","types":"./src/index.d.ts","peerDependencies":{"react":"^18.0.0"},"publishConfig":{"access":"public"},"_id":"@4kizuki/flatten-react-providers@1.0.1","gitHead":"1f13d35e0558a3b1de362dce47a653380109eab3","description":"A library to flatten multiple React providers into a single provider for better readability and diff friendliness.","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-SxObQ4txJvsCsoicq4dKXj1lYG4tpJa/5G4ba0hw/EMCXBRXpjnE9HAg2+TtGHgSDISMtgyy8lhPRc/0+GPqkQ==","shasum":"12f84082b1f228d955145b5267df40883409d9cd","tarball":"https://registry.npmjs.org/@4kizuki/flatten-react-providers/-/flatten-react-providers-1.0.1.tgz","fileCount":8,"unpackedSize":4888,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDL/yArgz9VZ9WLTEt1x6AfJeE769LKNZlJVYUc0mao9AiEAoR20+SkrVYrEQv27XEEO8Goq14BG46ZE7pH1C1SQGzU="}]},"_npmUser":{"name":"4kizuki","email":"4kizuki@h4dz.io"},"directories":{},"maintainers":[{"name":"4kizuki","email":"4kizuki@h4dz.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flatten-react-providers_1.0.1_1712754301951_0.5328071076706831"},"_hasShrinkwrap":false},"1.0.2":{"name":"@4kizuki/flatten-react-providers","version":"1.0.2","type":"commonjs","main":"./src/index.js","types":"./src/index.d.ts","peerDependencies":{"react":"^18.0.0"},"publishConfig":{"access":"public"},"_id":"@4kizuki/flatten-react-providers@1.0.2","gitHead":"141483f3361684f8ae618bcdb2075f874290a944","description":"A library to flatten multiple React providers into a single provider for better readability and diff friendliness.","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-vbYEROSDvdzZy4OtzUqZ/F38SfVCca9+4KVBslL9KwiUgpRptDpU/fk9SWcc+1dZAZBe2IU4fs9NhYOkFy1/UA==","shasum":"e6455e21a54886d678f762105e7671757b668650","tarball":"https://registry.npmjs.org/@4kizuki/flatten-react-providers/-/flatten-react-providers-1.0.2.tgz","fileCount":8,"unpackedSize":4879,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDao5O7OtyX2hxDiferuH3oPGuBAehZ5NbjebBFB14UlwIgZh9ZlKm2SKgmJuwRdW4On6/BRbuMVQRjaeBEGIrQRck="}]},"_npmUser":{"name":"4kizuki","email":"4kizuki@h4dz.io"},"directories":{},"maintainers":[{"name":"4kizuki","email":"4kizuki@h4dz.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flatten-react-providers_1.0.2_1712754540751_0.28639030622523864"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-10T12:57:24.317Z","1.0.0":"2024-04-10T12:57:24.686Z","modified":"2024-04-10T13:09:01.094Z","1.0.1":"2024-04-10T13:05:02.103Z","1.0.2":"2024-04-10T13:09:00.941Z"},"maintainers":[{"name":"4kizuki","email":"4kizuki@h4dz.io"}],"description":"A library to flatten multiple React providers into a single provider for better readability and diff friendliness.","readme":"# flatten-react-providers\n\nA library to flatten multiple React providers into a single provider for better readability and diff friendliness.\n\n```tsx\n// without this library\n\nimport { FunctionComponent } from \"react\";\n\nconst App: FunctionComponent = () => {\n  return (\n    <MyProvider1>\n      <MyProvider2>\n        <MyProvider3>\n          <Application />\n        </MyProvider3>\n      </MyProvider2>\n    </MyProvider1>\n  );\n};\n\n// with this library\n\nimport { FunctionComponent } from \"react\";\nimport { FlattenProviders } from \"@4kizuki/flatten-react-providers\";\n\nconst MergedProviders = FlattenProviders()\n  .chain(MyProvider1)\n  .chain(MyProvider2)\n  .chain(MyProvider3)\n  .build();\n\nconst SimplifiedApp: FunctionComponent = () => {\n  return (\n    <MergedProviders>\n      <Application />\n    </MergedProviders>\n  );\n};\n```\n","readmeFilename":"README.md"}