{"_id":"@damengrandom/use-fetch-hook-trial","_rev":"2-d0b9d7add5855887ae29f75ca914bfc0","name":"@damengrandom/use-fetch-hook-trial","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"@damengrandom/use-fetch-hook-trial","version":"2.0.0","description":"a trial for creating a custom fetch hook","author":{"name":"DamengRandom"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/DamengRandom/use-fetch-hook-trial.git"},"main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","engines":{"node":">=8","npm":">=5"},"scripts":{"test":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","build":"rollup -c","start":"rollup -c -w","prepare":"yarn run build","predeploy":"cd example && yarn install && yarn run build","deploy":"gh-pages -d example/build","postpublish":"git push --tags"},"peerDependencies":{"react":">=16.8.6"},"devDependencies":{"@babel/core":"^7.0.0","@babel/plugin-external-helpers":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-decorators":"^7.0.0","@babel/plugin-proposal-do-expressions":"^7.0.0","@babel/plugin-proposal-export-default-from":"^7.0.0","@babel/plugin-proposal-export-namespace-from":"^7.0.0","@babel/plugin-proposal-function-bind":"^7.0.0","@babel/plugin-proposal-function-sent":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-proposal-logical-assignment-operators":"^7.0.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.0.0","@babel/plugin-proposal-numeric-separator":"^7.0.0","@babel/plugin-proposal-optional-chaining":"^7.0.0","@babel/plugin-proposal-pipeline-operator":"^7.0.0","@babel/plugin-proposal-throw-expressions":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/preset-react":"^7.0.0","@testing-library/react-hooks":"^3.2.1","babel-eslint":"^10.0.1","cross-env":"^5.2.0","eslint":"5.16.0","eslint-config-standard":"^11.0.0","eslint-config-standard-react":"^6.0.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^7.0.1","eslint-plugin-promise":"^4.0.0","eslint-plugin-react":"^7.10.0","eslint-plugin-standard":"^3.1.0","gh-pages":"^2.0.1","react":"^16.9.0","react-scripts":"^3.4.0","react-test-renderer":"^16.9.0","rollup":"^1.1.2","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-peer-deps-external":"^2.2.0","rollup-plugin-url":"^2.1.0"},"publishConfig":{"access":"public"},"gitHead":"f5639b6b4750a8059c0d110df714825be6fd04cc","bugs":{"url":"https://github.com/DamengRandom/use-fetch-hook-trial/issues"},"homepage":"https://github.com/DamengRandom/use-fetch-hook-trial#readme","_id":"@damengrandom/use-fetch-hook-trial@2.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.20.1","dist":{"integrity":"sha512-6yvy9uPx57ILooBjvnMc2FLApIyIrQ9rHNEmYAcb/j3xPX4tL67OyB3q8q3WX5SaHhFJVNXtLOX9E+S2MiR7Mw==","shasum":"2e7ad57e35cbe6781ebc2e63f3abc1affa8739c6","tarball":"https://registry.npmjs.org/@damengrandom/use-fetch-hook-trial/-/use-fetch-hook-trial-2.0.0.tgz","fileCount":22,"unpackedSize":604206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg//Z0CRA9TVsSAnZWagAA07sP/34iHH3Zhj71q9pWhHgu\nehtYzEKS5QPVz7O4n4Vo9WToAMGN/6XtmN43zDw4QH9cv/7JZwhfrIWuvvbP\n9S33s5k4RpEmRtgjLt5h5eHG6iUtxSYxw0pjXLhFWcJ42gEEegcIwG4V0kRG\nVZqa5g1ddtpjQ5BmyTQMcFSE1jyH5g5xIh8w4XPBOjOAl3QbxPHbPRPyzAtZ\nCMNJtSDEb6+icddSOI9fexN2OUMBlHnsBYnMPiFAldqPmbkHba65kIvsuBLp\nh9Nbqm8XS7f9bikAOF4IoDbN61BtmPPYw2bXK7+W+ewW2BHRrs1V7Pxjw0Yb\n9eDW4GLld5yGmutJfO66mx/bgoxQqvfF3gPx7oSwEZKJ3sN9Ndqk3WoSrAZn\nIYGsJCn2gl/teK/hQ0cxYPF80H0pb8MsGUukdWUBIk3JgVV+JGQK/Xn/bjhL\nbURaDWasSZM9wHtJdLb20QbVD+2GeiwFZeCvCMQ++52n5F4ZBPtWpbYzAsP/\nIjNWaln5MowLIofANm1/5ewyXJ4+4jAU3ygdynasfPy6fLdpGhH8Xrk0oc+U\noGTFlYm4lNnesR0s4ghdYwFFyXc4LCDjsIvy6abMPeeNAHqPUVfZ3uerYQgO\nHwPP4MkP4DPTTvWbJ+3LDChxCEmRqPw2IaGlnB1Lurm3pWWtrdP3ZmN/bTx/\nMbsC\r\n=vgG0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGOEqL2anBsew8A89MrLwL9w/8EsAL/HgziI7ZkZpBBIAiB697hAouckAou56cDmVJGlnfxkWlrZ3HkYcssW8sU6gQ=="}]},"_npmUser":{"name":"damengrandom","email":"damonmaozewu@gmail.com"},"directories":{},"maintainers":[{"name":"damengrandom","email":"damonmaozewu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-fetch-hook-trial_2.0.0_1627387507948_0.4226878738549049"},"_hasShrinkwrap":false},"2.0.1":{"name":"@damengrandom/use-fetch-hook-trial","version":"2.0.1","description":"a trial for creating a custom fetch hook","author":{"name":"DamengRandom"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/DamengRandom/use-fetch-hook-trial.git"},"main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","engines":{"node":">=8","npm":">=5"},"scripts":{"test":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","build":"rollup -c","start":"rollup -c -w","prepare":"yarn run build","predeploy":"cd example && yarn install && yarn run build","deploy":"gh-pages -d example/build","postpublish":"git push && npm version minor --no-git-tag-version"},"peerDependencies":{"react":">=16.8.6"},"devDependencies":{"@babel/core":"^7.0.0","@babel/plugin-external-helpers":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-decorators":"^7.0.0","@babel/plugin-proposal-do-expressions":"^7.0.0","@babel/plugin-proposal-export-default-from":"^7.0.0","@babel/plugin-proposal-export-namespace-from":"^7.0.0","@babel/plugin-proposal-function-bind":"^7.0.0","@babel/plugin-proposal-function-sent":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-proposal-logical-assignment-operators":"^7.0.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.0.0","@babel/plugin-proposal-numeric-separator":"^7.0.0","@babel/plugin-proposal-optional-chaining":"^7.0.0","@babel/plugin-proposal-pipeline-operator":"^7.0.0","@babel/plugin-proposal-throw-expressions":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/preset-react":"^7.0.0","@testing-library/react-hooks":"^3.2.1","babel-eslint":"^10.0.1","cross-env":"^5.2.0","eslint":"5.16.0","eslint-config-standard":"^11.0.0","eslint-config-standard-react":"^6.0.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^7.0.1","eslint-plugin-promise":"^4.0.0","eslint-plugin-react":"^7.10.0","eslint-plugin-standard":"^3.1.0","gh-pages":"^2.0.1","react":"^16.9.0","react-scripts":"^3.4.0","react-test-renderer":"^16.9.0","rollup":"^1.1.2","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-peer-deps-external":"^2.2.0","rollup-plugin-url":"^2.1.0"},"publishConfig":{"access":"public"},"gitHead":"b214f88b1cacf1041c944e51cf9407cbf11882a7","bugs":{"url":"https://github.com/DamengRandom/use-fetch-hook-trial/issues"},"homepage":"https://github.com/DamengRandom/use-fetch-hook-trial#readme","_id":"@damengrandom/use-fetch-hook-trial@2.0.1","_nodeVersion":"15.11.0","_npmVersion":"7.20.1","dist":{"integrity":"sha512-QsBdD1uqAFhTPK7x2eAOWDII4o5JtjVdw+mST+eaNsMCT+gg1/evbyhT8yNB9z7bM0/1MtK02armk6YHMOc6eQ==","shasum":"f74232d789f242bd3f9206bbc880f2debeafc57e","tarball":"https://registry.npmjs.org/@damengrandom/use-fetch-hook-trial/-/use-fetch-hook-trial-2.0.1.tgz","fileCount":22,"unpackedSize":604241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg//gyCRA9TVsSAnZWagAA5l0P/jH2UWtPn0r71+kcxclD\nHdiSOFo/YBC25nDombfAQNqzxTKfcWlaMzbBxm0u7R8MnrD6gzSRsZwuqHxz\nkoHDh/VZgl0k0dkaOKpiNqa/vabzyurcQO8OhwXWeI4CHaBFfDPNgxG6gHD1\nelsNR5gOuDEltNAN+zpv4kAlnnsr2qvli/WOPo+8KMPLg03ilJ18IMA8iw4N\nXg24Ywd2/nO3lk4vwcSET7+BXH8rkzG0qNKhp4c9Btxo39eKpGjKcjI5Rc97\neDIqHBXmc1QBRG7BUrJfcFOd4GQ22hrPzo+e58HPdqFBJn79iGDBlQ2AasDQ\nIrFAbhk49QIdOwuuznJ9QjUIU2njuGFhPXhMEz6/N5SzeOnTEp9Dj24tD6iw\nVhFOgsl//89VjLaKUg0db/Sb8np917XbKHT2x9l120uF34RJgF0IIQuHJtcd\ngdKStXxDDpdONobWzhRowVtNBj6afrpXP0Q8ZxywDMvkD9wFhe+CDkAsGGPY\nILp2mKokBqDMOnXs/uP8IhDsBeKbcPc84oPou4WLMOXzirsuQleCrKT/6OFb\nmXvDdVqSVBGgHr79Db98gCPTUxg5viGZ32q0ZtPOr4ow8c1kg8a5vl1/z/3F\ncPdB6k2/IPWQ87R5l7zC9FUsmeRmh5gZ4PpSSxPEd6zVOYEs699eYstF7jZu\nd/Vt\r\n=43YV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzB1XIXJvf8dujtVT/aLENY/UhxutvN21mMMx/x7r59AiEAz2KlE/cxawRH7/dLtKcJo5T+vC859wEtH1LiloU94sk="}]},"_npmUser":{"name":"damengrandom","email":"damonmaozewu@gmail.com"},"directories":{},"maintainers":[{"name":"damengrandom","email":"damonmaozewu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-fetch-hook-trial_2.0.1_1627387954324_0.4009231369903541"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-27T12:05:07.903Z","2.0.0":"2021-07-27T12:05:08.179Z","modified":"2022-04-05T02:38:40.641Z","2.0.1":"2021-07-27T12:12:34.488Z"},"maintainers":[{"name":"damengrandom","email":"damonmaozewu@gmail.com"}],"description":"a trial for creating a custom fetch hook","homepage":"https://github.com/DamengRandom/use-fetch-hook-trial#readme","repository":{"type":"git","url":"git+https://github.com/DamengRandom/use-fetch-hook-trial.git"},"author":{"name":"DamengRandom"},"bugs":{"url":"https://github.com/DamengRandom/use-fetch-hook-trial/issues"},"license":"MIT","readme":"# @damengrandom/use-fetch-hook-trial\n\n> a trial for creating a custom fetch hook\n\n[![NPM](https://img.shields.io/npm/v/@damengrandom/use-fetch-hook-trial.svg)](https://www.npmjs.com/package/@damengrandom/use-fetch-hook-trial) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save @damengrandom/use-fetch-hook-trial\n```\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport { useFetchQuote } from '@damengrandom/use-fetch-hook-trial'\n\nconst App = () => {\n  const endpoint = 'https://jsonplaceholder.typicode.com/todos/1'\n  const { quote, loading } = useFetchQuote(endpoint)\n\n  if (loading) return <p>Loading ..</p>\n\n  return (\n    <div>\n      <p><quote>{quote}</quote></p>\n    </div>\n  )\n}\nexport default App\n```\n\n## License\n\nMIT © [DamengRandom](https://github.com/DamengRandom)\n\n---\n\nThis hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).\n","readmeFilename":"README.md"}