{"_id":"@allbin/with-config","_rev":"12-94b4bfb546648b5b4cbfa9135f0beba5","name":"@allbin/with-config","dist-tags":{"latest":"7.0.9"},"versions":{"7.0.6":{"name":"@allbin/with-config","version":"7.0.6","author":"","license":"ISC","_id":"@allbin/with-config@7.0.6","maintainers":[{"name":"alendri","email":"joakim.johansson@allbinary.se"},{"name":"pscz","email":"samuel.psc.olsson@gmail.com"}],"bugs":{"url":"git+https://github.com/allbin/with-config/issues"},"dist":{"shasum":"136e5bbb1e236772c3e94856c842a5aaf19e0468","tarball":"https://registry.npmjs.org/@allbin/with-config/-/with-config-7.0.6.tgz","fileCount":8,"integrity":"sha512-9pkrnQfpmqJXF9BazFOcGQfHp9JXQ30R/yL+eGiWbIRyDsLneK1SWMAc9MJQJlWjPD/Re8Ciu7V59YUq9SbdhQ==","signatures":[{"sig":"MEUCIBYWvaahJtryKLD5/S7D1vLZiBJSD3HZ3m8cLDPz4DghAiEAtprHq7NFRAaFdR61JpR47XFtU93Z98GGmXTsGc8ol4Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflpwiCRA9TVsSAnZWagAAAbEP/jZ5+bmuktMpZZmeFKrj\nnEYsIa+MtaSk+OR1btBwdPw0f+U1wdU5YsX4W6+HDRZOIEcZ8aHg+mNLL4+D\nyQuUuvwqpr1UFxZfc5lUa65nZtVXq0nrAnfq5ugr0+tCJUfOnDyV+AtTBj1f\nKHJw8UO6pXTHIN2jjgrdmbhbTDKYtvbNYXYgy5ixJefUbe7lv0OXHIaWoHBr\nE3400IX4wdt2MBG7b/SbxGkW8JUwzj+G7K8QpE1RdG/McQzOqhG4aSiYeQKY\nBlPPFzkyrmZaJQRJWZgDUx8jrt3vWkV/vz6oWeBQrL+COuH2M5iyrFyu1G2S\nX9xYGZG5ALjFWfsPtDDubQhCDQiqDke+bl4QVTK/P+0VEb/Ro2bu4FAv3CkZ\nYpFYqZvBvwVtPbfVqRKrDpDC5DIUU0w+TseHtq2YTcBZHt4/+heA2J8x7RfP\nPgyFJgKmcGa0r/bHT3tH2/KqNYOIARU2HIIbYIa964RjL5CRCyP1ugo+7NFX\ng96Ai9zCx50/8soZqMaqXVUzZMSjprLqiu9wroqGgDMhwbwBaHEEyhgaJOct\nT4haHc6ehAU1uuVNQmq65yABZOUdRWMZkWKDd5OIjNXXRfa6J8AlhBTmN0PB\n+K8H5TCnXIKvbyZ9Pvw84PTYIKeXd9U5vP3JN4+epjGCKLFgLetc9CV6AAAW\n2NFO\r\n=quNs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"b71f9ec779e365635ef63e2cee8a1e241938a42b","scripts":{"lint":"eslint --ext .ts src","build":"rm -rf lib && tsc","clean":"rm -rf lib","lint:fix":"eslint --ext .ts --fix src"},"_npmUser":{"name":"pscz","email":"samuel.psc.olsson@gmail.com"},"repository":{"url":"git+https://github.com/allbin/with-config.git","type":"git"},"_npmVersion":"6.14.8","description":"### Example","directories":{},"_nodeVersion":"12.19.0","_hasShrinkwrap":false,"devDependencies":{"axios":"0.*","react":"16.*","eslint":"^7.8.1","prettier":"^2.1.1","typescript":"^4.0.2","@types/axios":"0.*","@types/react":"16.*","@types/react-dom":"16.*","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@typescript-eslint/parser":"^4.0.1","eslint-plugin-react-hooks":"^4.1.0","@allbin/eslint-config-react":"0.0.11","@typescript-eslint/eslint-plugin":"^4.0.1"},"peerDependencies":{"axios":"0.*","react":"16.*"},"_npmOperationalInternal":{"tmp":"tmp/with-config_7.0.6_1603705890307_0.7866226198884647","host":"s3://npm-registry-packages"}},"7.0.7":{"name":"@allbin/with-config","version":"7.0.7","author":"","license":"ISC","_id":"@allbin/with-config@7.0.7","maintainers":[{"name":"pscz","email":"samuel.psc.olsson@gmail.com"},{"name":"alendri","email":"joakim.johansson@allbinary.se"}],"bugs":{"url":"git+https://github.com/allbin/with-config/issues"},"dist":{"shasum":"c764b75fb0fd7e2d33ffa4d4e14f81db2d2af930","tarball":"https://registry.npmjs.org/@allbin/with-config/-/with-config-7.0.7.tgz","fileCount":8,"integrity":"sha512-0UOMHhTNVXode5QRChQgn1P+9NGBu6XLJJhIOV0qCDdKD9oXCqx+Q19wDGCTVP77RLKlooVSeQc+HZzoOwiXdw==","signatures":[{"sig":"MEUCIG+BJjqclsqQ7e5Do/0sqaW7Bjh3Em74T24i5d5F72lOAiEA3beYl71wKjCZ7bJ42aZ2QgMdjkWZZo5u+pV3ynzgf7c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh11bJCRA9TVsSAnZWagAAzlYQAJfonNoL3HM09I6AkLj4\nDzlU9SXKJzMmIENr5WGOzS3NvES+i/U8pGT0aUNqvZxNJc8O8F2l/MrV57vP\ng/OeX8iR5Yatsu7X5X9q8wK1atMJUwmav1WPmKHpUyskp9E3GNaBEeCW94J9\ngZaYaGelcUIE8rJQrSSNxCacNk5dkLrSvbtEH3iqkwN12XE5WzJMXjQ5cVOy\ngrgWaya1NDZ4wMZJcShuYnVdMtTtoGzTzwJak3lm9w1BMfmNZnih1jxk0qsR\nymp7qZjESrMnO8lOlw0zMsZtg15mKChZbRioxP6Nz9KJ3ppduXFYg15CAKl8\ntlfzPfv6ikHgbyFsApCdA/rJ8K7ARfUZlyZCbFQ0xuLG3ME+VyVPuEuOxjhw\n0JtTBIQ+JeMEF2cXBGFd6IrBl2lUKoguUyNafbSr+rDKJyVPSUdIazcxa4ce\nYCBS5KpnmD0SiwAYYagVcQHM2TqJBcbg2eaqtW3UOmgrA90TjOZmLxF+zQQe\n8cYV8CuKl4s3AJCc8dYdEH0oK5OOdpWakD6ysTqu7QF0C5VG/UqnGiFOCXDl\nDSvYVRqmzJMs6gZ83eiWnOf8RfMpdgKJOAjsacBZw+5AYnbpArS8NThOHOtN\nsLrkRBRPURijvekBG83BsTswVtS/0XWPOiUFW/yGAgY8oul1ediLSe06OQwu\nWnDr\r\n=UO1+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"e08dabc18e0b2a9d00c238579eed33eb367f2872","scripts":{"lint":"eslint --ext .ts src","build":"rm -rf lib && tsc","clean":"rm -rf lib","lint:fix":"eslint --ext .ts --fix src"},"_npmUser":{"name":"pscz","email":"samuel.psc.olsson@gmail.com"},"repository":{"url":"git+https://github.com/allbin/with-config.git","type":"git"},"_npmVersion":"6.14.11","description":"### Example","directories":{},"_nodeVersion":"12.21.0","_hasShrinkwrap":false,"devDependencies":{"axios":"0.*","react":"16.*","eslint":"^7.8.1","prettier":"^2.1.1","typescript":"^4.0.2","@types/axios":"0.*","@types/react":"16.*","@types/react-dom":"16.*","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@typescript-eslint/parser":"^4.0.1","eslint-plugin-react-hooks":"^4.1.0","@allbin/eslint-config-react":"0.0.11","@typescript-eslint/eslint-plugin":"^4.0.1"},"peerDependencies":{"axios":"0.*","react":"16.* || 17.*"},"_npmOperationalInternal":{"tmp":"tmp/with-config_7.0.7_1615280976341_0.9085129183533929","host":"s3://npm-registry-packages"}},"7.0.8":{"name":"@allbin/with-config","version":"7.0.8","author":"","license":"ISC","_id":"@allbin/with-config@7.0.8","maintainers":[{"name":"mdjarv","email":"mathias.djarv@allbinary.se"},{"name":"pscz","email":"samuel.psc.olsson@gmail.com"},{"name":"alendri","email":"joakim.johansson@allbinary.se"}],"homepage":"https://github.com/allbin/with-config#readme","bugs":{"url":"git+https://github.com/allbin/with-config/issues"},"dist":{"shasum":"d4cba732582deea0c6c9e113862f6aa4f1843ee4","tarball":"https://registry.npmjs.org/@allbin/with-config/-/with-config-7.0.8.tgz","fileCount":8,"integrity":"sha512-jFBYn3DRH5/1sL6WWdMdQlKfs55Vd8Syq2Y5rWbeNIFPBveKFSy9gayqJXBgRqMmyoT/dBVZ5FNq5tuQbFu4oQ==","signatures":[{"sig":"MEYCIQC6VIMImrK88yvf0Ym4/cc0ZhihmSj5mohZ/nz4NuyJZwIhAPrLuvISaNPhwA5NcC56Jd+OnjjWcy5/7ESEAwT9htG3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGXqWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOAQ//egKM81pEHQWwZdX4rEHpeQ05f5DOOC/QIizcWVmOLHgZma6A\r\nZDaWZHebZBpqO8zoAA4xw0TPu7hRnZ4MuYVzMweWREKDSqDJQuNAKJ3lotRt\r\nGovMV30RhrQNSqZQjslxlMofKfcso5JihDZi/z41yTsCRIynrns4SUUfpaN7\r\nuiDgU7kW0+hZiKOqCVUDNQ0ZI7H08jrfYQNWLco9qQ5zKz/clJy5lRwM//mA\r\n+G/tGOzAcOgVeSxOJOVd/Dc2f1/wCaTQji+rrzDvx4QM+oGhCjuYmippSk2+\r\n9tmld4whgp+u817NnR12XZHY6bsWDMr+uBsUQDOgPHXOGivnZsHknIXGyGPC\r\n/w/E+zMvjX2YsHbHPfELIcH03kxgM0OCIFRuFQyaCR+e2aJv0z80UMphfZxz\r\nEbwu+pejwvB6Aqa3oPuf40mBcdCARZ+5HDz+T4VDCiPKzrK9tlfcMKqOL5ab\r\nblU5ivP4SIVw+izLxOg7m9DFvzBYjOvfbWCHXa57ayaYQHwXMSNGzxFYr/sB\r\n6rn2QVjjqAR7NbOejpn26L36K1njVRMe+34g6RWbALMrA0eaxUEPXx3yfVW4\r\nsPhpB+RY4IH2ln/up6mCBWVioIB3/a5MvtgS9xRQcMqYmpi/UE8XX5rY9YJE\r\nJI0vyA3cXRIjECw617/8KVM7D58UDvldEvQ=\r\n=bzUl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"b29b45e05a8f7d8f7a7309abe58049996a650753","scripts":{"lint":"eslint --ext .ts src","build":"rm -rf lib && tsc","clean":"rm -rf lib","lint:fix":"eslint --ext .ts --fix src"},"_npmUser":{"name":"pscz","email":"samuel.psc.olsson@gmail.com"},"repository":{"url":"git+https://github.com/allbin/with-config.git","type":"git"},"_npmVersion":"6.14.16","description":"### Example","directories":{},"_nodeVersion":"12.22.12","_hasShrinkwrap":false,"devDependencies":{"axios":"0.*","react":"16.*","eslint":"^7.8.1","prettier":"^2.1.1","typescript":"^4.0.2","@types/axios":"0.*","@types/react":"16.*","@types/react-dom":"16.*","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@typescript-eslint/parser":"^4.0.1","eslint-plugin-react-hooks":"^4.1.0","@allbin/eslint-config-react":"0.0.11","@typescript-eslint/eslint-plugin":"^4.0.1"},"peerDependencies":{"axios":"0.* || 1.*","react":"16.* || 17.* || 18.*"},"_npmOperationalInternal":{"tmp":"tmp/with-config_7.0.8_1679391382376_0.11964100183216364","host":"s3://npm-registry-packages"}},"7.0.9":{"name":"@allbin/with-config","version":"7.0.9","author":"","license":"ISC","_id":"@allbin/with-config@7.0.9","maintainers":[{"name":"mdjarv","email":"mathias.djarv@allbinary.se"},{"name":"pscz","email":"samuel.psc.olsson@gmail.com"},{"name":"alendri","email":"joakim.johansson@allbinary.se"}],"homepage":"https://github.com/allbin/with-config#readme","bugs":{"url":"git+https://github.com/allbin/with-config/issues"},"dist":{"shasum":"84ebf6efdd51c69aa1b4c46c19ec7bca70c77a55","tarball":"https://registry.npmjs.org/@allbin/with-config/-/with-config-7.0.9.tgz","fileCount":8,"integrity":"sha512-1td1KFyAj0NmsZdcjWxiwauwvIg84aPsI1epdRXiBpiQQTy54fk+coHvNvgz8SZI9LGEIkjWCLcQXaagcn/nzQ==","signatures":[{"sig":"MEUCIEoMJgb6JzQbTBITXuvhCQiMtbRXXN2Y/jJfSU9XtNc+AiEAgFpa2AucPhy2L98kF8Z8pO25vy+T5efNyl+YZMDTpc4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGmX4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzWQ//eS3qWXvA1dI1FudhqCyBCMjZY0Txtd2SoTq4Varm5zIYv/EW\r\nPCH0K2URxmXiZxuINrkRbolJfN/G5PE2EIFLQI8ypRLUP29ktW/hzhuUoRSc\r\ngAyiaXSt3HDAQCZaPlA3SAnnAUOUmQSFaWizdxJnfONMCPMTKt+hXHHNx3/a\r\nYny2Q9BCCDH+f4sVI2cQXVwPtC+G9Zw2WgxMRr0Kq741Ll7q+wh9B8/nKlZ7\r\n+plI1mChTZ3b7yFuBA6o9TO+VUhaW735v3u6nhYZUWOgDx6G5wF+zpu8w6E5\r\n2X6g3wPVLHv4CTABjIEagsnd6XIhhnHxFB5zCe0XpCRch5wcwzvIgk0G7miG\r\nLlRVtXj2qAl4MJF2Qcag8Fzt32TZGUGW4vLSVWhlsAVmGZug0QMeY5ewYW4M\r\nBPL9gS6qGRNtVrEk3UQR5wzykEEpALIcYBwLO+GiZjU1Y2CGcJmuy21lne/l\r\nk7tNBFpwZOt0wJBxbb34S+ulznap7p/w8JvFqpcfzDGbwgN1ajdQXSev3jIm\r\nIFEn+/mRj+sZrprLqNNRcicswz8LHQrKWv1KC9OG7XV1FFsCo/Vg927Y7Plz\r\nJFhLwCaZyQGCXbEDKz92JWU0oHDaqKBjYMAVZi0bPTX2ebOjC48FBkfpEPyM\r\nbgiNX8N72vXRO8JyPDULqpyQrluGZHUNytY=\r\n=r3oZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"ef129fece2043b635d36243376523829b8c92902","scripts":{"lint":"eslint --ext .ts src","build":"rm -rf lib && tsc","clean":"rm -rf lib","lint:fix":"eslint --ext .ts --fix src"},"_npmUser":{"name":"pscz","email":"samuel.psc.olsson@gmail.com"},"repository":{"url":"git+https://github.com/allbin/with-config.git","type":"git"},"_npmVersion":"6.14.16","description":"### Example","directories":{},"_nodeVersion":"12.22.12","_hasShrinkwrap":false,"devDependencies":{"axios":"0.*","react":"18.*","eslint":"^7.8.1","prettier":"^2.1.1","typescript":"^4.0.2","@types/axios":"0.*","@types/react":"18.*","@types/react-dom":"18.*","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","@typescript-eslint/parser":"^4.0.1","eslint-plugin-react-hooks":"^4.1.0","@allbin/eslint-config-react":"0.0.11","@typescript-eslint/eslint-plugin":"^4.0.1"},"peerDependencies":{"axios":"0.* || 1.*","react":"16.* || 17.* || 18.*"},"_npmOperationalInternal":{"tmp":"tmp/with-config_7.0.9_1679451640206_0.94626892536647","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-10-26T09:51:30.108Z","modified":"2026-04-28T15:26:09.702Z","7.0.6":"2020-10-26T09:51:30.422Z","7.0.7":"2021-03-09T09:09:36.467Z","7.0.8":"2023-03-21T09:36:22.551Z","7.0.9":"2023-03-22T02:20:40.379Z"},"bugs":{"url":"git+https://github.com/allbin/with-config/issues"},"license":"ISC","homepage":"https://github.com/allbin/with-config#readme","repository":{"url":"git+https://github.com/allbin/with-config.git","type":"git"},"description":"### Example","maintainers":[{"email":"samuel.psc.olsson@gmail.com","name":"pscz"},{"email":"noah.hakansson@protonmail.com","name":"noahhakansson"},{"email":"mathias.djarv@allbinary.se","name":"mdjarv"},{"email":"james.taylor@mobilix.io","name":"jamestttt"}],"readme":"# @allbin/with-config\n\n### Example\n\nsrc/config.ts:\n```\ninterface ConfigType {\n  [...]\n}\n\nexport const default_config: ConfigType = {\n  [...]\n}\n\nconst ConfigContext = React.createContext<ConfigType>(default_config);\nexport default ConfigContext;\n```\n\nsrc/index.tsx:\n```\nimport WithConfig from '@allbin/with-config';\nimport ConfigContext, { default_config } from './config';\n\n[...]\n\nReactDOM.render(\n  <WithConfig Context={ConfigContext} default_config={default_config}>\n    <...>\n  </WithConfig>\n)\n```\n\nsrc/views/View.tsx:\n```\nimport ConfigContext from '../config';\n\n\nconst View = React.FC = () => {\n  const config = useContext(ConfigContext);\n\n  [...]\n}\n```\n","readmeFilename":"README.md"}