{"_id":"react-localstorage-hook","_rev":"3-a6a934898e684eb05edc9abf55f543bd","name":"react-localstorage-hook","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"react-localstorage-hook","version":"0.0.1","author":{"name":"Kaan Seyitogullari"},"homepage":"https://github.com/kaansey/react-use-local-storage/","repository":{"type":"git","url":"git+https://github.com/kaansey/react-use-local-storage.git"},"keywords":["react","use","hook","local","store","localstorage","localStorage","local storage","useLocalStorage","persistent","consistent","state","storage"],"main":"dist/index.cjs.js","module":"dist/index.esm.js","license":"MIT","types":"dist/index.d.ts","scripts":{"build":"rollup -c","build-watch":"rollup -c -w","lint":"eslint ./src/**/*.ts","lint:fix":"yarn test:lint -- --fix","test":"jest"},"jest":{"preset":"ts-jest"},"devDependencies":{"@testing-library/react-hooks":"^3.2.1","@types/jest":"^25.2.1","@types/react":"^16.9.13","@types/react-dom":"^16.9.4","@types/react-tooltip":"^3.11.0","@typescript-eslint/eslint-plugin":"^2.9.0","@typescript-eslint/parser":"^2.9.0","concurrently":"^5.0.0","eslint":"^6.7.1","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-react":"^7.16.0","install-peers-cli":"^2.1.1","jest":"^25.3.0","prettier":"^1.19.1","react":"^16.13.1","react-test-renderer":"^16.13.1","rollup":"^1.27.5","rollup-plugin-size-snapshot":"^0.10.0","rollup-plugin-terser":"^5.1.3","rollup-plugin-typescript2":"^0.25.2","ts-jest":"^25.3.1","ts-node":"^8.5.2","tslib":"^1.10.0","typescript":"^3.7.2"},"peerDependencies":{"react":"^16.12.0","react-dom":"^16.12.0"},"gitHead":"2e6e49e88d37758bbf5ccd2074c512f6a74327c3","description":"","bugs":{"url":"https://github.com/kaansey/react-use-local-storage/issues"},"_id":"react-localstorage-hook@0.0.1","_nodeVersion":"10.19.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-U0NS0+tIF8yNfJHz5Ij/q98C+73nbKXWSDL83/l2XWIl3AUSViCfOjZdX7gUjt8Onbrmo2rZT/ZF7P7+owldcQ==","shasum":"7db6a11e9bb4989294c80563f210069301277949","tarball":"https://registry.npmjs.org/react-localstorage-hook/-/react-localstorage-hook-0.0.1.tgz","fileCount":8,"unpackedSize":5104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekGZcCRA9TVsSAnZWagAAKZYP/0PhMHXd3x/8Kzzz4Wre\nT+2vwHNUpuBsZnGmRMpk3H2FDgDF7cKXs4ZFBkh4qg1C/QdWPV2+vNObgplm\nwtPxVwVpx0SJjbPnVPNkBqofSJgy2GcO9PxkB9CTMj0ET+Aj/OTC2VBX28Cv\n2ZzlYMkK/hy4TNCp9UuVws4QFHxV0JhLT21+BfGKseK4TJa+1H+7tmYgH0xy\nO5OWsjt+2anxvsSZ6BkKmqkmFFf524Fd9wf985NX9ByzFJwRKkBBOEuGIBeJ\nCemlA1YnQHwdk8r+azY97afH74sxzzFpuZAl5k2Ji1ipymuDPBlDNfWsMyvZ\n2qxrnOWqnijEPnmz6nXKD19YI6YFoMJ+O/BnNCJMkvEXq2DGJ3nOJJFlQ1Ps\nC5TTwcLjkfCAUXb9LPA0tIUbafYq1htLoFp0tTAlMQcxoiv1J83Ojp8ow8s3\nQRlqF1pUeqYzWOVkd5AJD6D0iaWSLUvNJAncKRsty1oq2ftOFeNDWU+Mb5MD\n5tLD1+Xp27u3wesCfHcWnjk0USZPWX9PJ8S2AZvoheWiOzR7JA5XtdhuvRdF\nWUkic4Zi6+YT1XKCjPzYGXcF88kxTIQG2tIXppp2ANvasiYiSrN701QNBNkA\nGmNr7gaeE5UGXhYfYsJ7K4/SmDhpP8+mYA5L8oSLgxituUr+N/sOP+2EzvG8\nMokv\r\n=aQXU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVRisDO2UG6s+JYQy45oTteQuT6V+PRMZVvkwxW/5l8gIgNzSqjEIoZb0pKtd0zxG9SjgKyMWxJK2APk8aKV9enKU="}]},"maintainers":[{"name":"kaansey","email":"kaanse@hotmail.com"}],"_npmUser":{"name":"kaansey","email":"kaanse@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-localstorage-hook_0.0.1_1586521692226_0.6814328944486387"},"_hasShrinkwrap":false},"0.1.0":{"name":"react-localstorage-hook","version":"0.1.0","author":{"name":"Kaan Seyitogullari"},"homepage":"https://github.com/kaansey/react-localstorage-hook","repository":{"type":"git","url":"git+https://github.com/kaansey/react-localstorage-hook.git"},"keywords":["react","use","hook","local","store","localstorage","localStorage","local storage","useLocalStorage","persistent","consistent","state","storage"],"main":"dist/index.cjs.js","module":"dist/index.esm.js","license":"MIT","types":"dist/index.d.ts","scripts":{"build":"rollup -c","build-watch":"rollup -c -w","lint":"eslint ./src/**/*.ts","lint:fix":"yarn test:lint -- --fix","test":"jest"},"jest":{"preset":"ts-jest"},"devDependencies":{"@testing-library/react-hooks":"^3.2.1","@types/jest":"^25.2.1","@types/react":"^16.9.13","@types/react-dom":"^16.9.4","@types/react-tooltip":"^3.11.0","@typescript-eslint/eslint-plugin":"^2.9.0","@typescript-eslint/parser":"^2.9.0","concurrently":"^5.0.0","eslint":"^6.7.1","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-react":"^7.16.0","install-peers-cli":"^2.1.1","jest":"^25.3.0","prettier":"^1.19.1","react":"^16.13.1","react-test-renderer":"^16.13.1","rollup":"^1.27.5","rollup-plugin-size-snapshot":"^0.10.0","rollup-plugin-terser":"^5.1.3","rollup-plugin-typescript2":"^0.25.2","ts-jest":"^25.3.1","ts-node":"^8.5.2","tslib":"^1.10.0","typescript":"^3.7.2"},"peerDependencies":{"react":"^16.12.0","react-dom":"^16.12.0"},"gitHead":"1124cbdd027ff29460226ccc0d0ebfcbae1da163","description":"[![npm package][npm-badge]][npm] ![npm-bundle-size] ![Module formats][module-formats] ![npm-download-count]","bugs":{"url":"https://github.com/kaansey/react-localstorage-hook/issues"},"_id":"react-localstorage-hook@0.1.0","_nodeVersion":"10.19.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-gyMW2nVl/ybXNHfFGQkBMK7b86vzDdUz9cBCQJMEMQjAA7HYyq+4siS7v9DcAAsGBTUlErrjlplvFmLYcIBmYw==","shasum":"b272205ea464c8dce9493f89daddd33140945e40","tarball":"https://registry.npmjs.org/react-localstorage-hook/-/react-localstorage-hook-0.1.0.tgz","fileCount":8,"unpackedSize":6686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekHBoCRA9TVsSAnZWagAAn+sQAIVfexWe31IiuxaP8wrx\nzaEBMEfnf7pPn0VrQ9hONoGoV3j6e1SNoZc0B62RnfpfDLvZ5/kntFEjRgOn\nRI30AkrDhAWIrG2U8CJ3ndRT5KCB9AUBRBPmSgrOLxNbyrJbB2BomzV3EDIn\nq9Xhw29dKIWSmd9kctNp8AVC5Mo4AZsR1tvkavi/UFD5Sbuw814HVvfVafeX\nU1o8zt/sIlWeoTN71yaxEXoIMPIeOPMv4TDP5Bn0K9zkk4Oo/kZcoBHBQFxx\nyb2pRVeLhqS86FDX5mXC/RLZ2MqbQrlF7p4Aaz93WQlUEbJJ3C4pEPyfjUf+\nKwOzRjMFblYQwLCIgeb1XVGvQxoug4r/EqWkxXtX8wG7D82iTlWM1U1WpSw+\nQGBCOhHQWwHKr75gqfzYP3n+QMkNgKg8UNAD/NweuGFBINgeGvn9ICvsNgjW\nVpkbCXCSUmKfv9jwaWJfaEREMByOLg0pS5YFwdZnN3lwrQINbFBAt3+phZs3\nzHlghxlI0Lj4uI8oHeUU0DNZLPH1/ItL99cqf4jrSLpYjzh62LBQXAtyXb9h\n3XJow/UYlP/cntkTo70eZR0dCv3TtNSd8pD6MHu07PLdH/T9mRfS0K0EngMR\nOwjAS4PTjQY6bBlS7yBCJU91r6e7kjwzLRvH+IKdhs5qJJghEZqy2zNteECQ\nzFBN\r\n=3PZZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiypH41+BSRPtrbReZLwBU0pVZgrOUdsezauFvpn3RJAIhANsUAjmyw2D034PqsBTxrIrGDX3X0/ksCUZ2STXPRdxj"}]},"maintainers":[{"name":"kaansey","email":"kaanse@hotmail.com"}],"_npmUser":{"name":"kaansey","email":"kaanse@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-localstorage-hook_0.1.0_1586524263935_0.8833268230498628"},"_hasShrinkwrap":false},"0.1.1":{"name":"react-localstorage-hook","version":"0.1.1","author":{"name":"Kaan Seyitogullari"},"homepage":"https://github.com/kaansey/react-localstorage-hook","repository":{"type":"git","url":"git+https://github.com/kaansey/react-localstorage-hook.git"},"keywords":["react","use","hook","local","store","localstorage","localStorage","local storage","useLocalStorage","persistent","consistent","state","storage"],"main":"dist/index.cjs.js","module":"dist/index.esm.js","license":"MIT","types":"dist/index.d.ts","scripts":{"build":"rollup -c","build-watch":"rollup -c -w","lint":"eslint ./src/**/*.ts","lint:fix":"yarn test:lint -- --fix","test":"jest"},"jest":{"preset":"ts-jest"},"devDependencies":{"@testing-library/react-hooks":"^3.2.1","@types/jest":"^25.2.1","@types/react":"^18.2.0","@types/react-dom":"^18.2.0","@types/react-tooltip":"^3.11.0","@typescript-eslint/eslint-plugin":"^2.9.0","@typescript-eslint/parser":"^2.9.0","concurrently":"^5.0.0","eslint":"^6.7.1","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-react":"^7.16.0","install-peers-cli":"^2.1.1","jest":"^25.3.0","prettier":"^1.19.1","react":"^18.2.0","react-test-renderer":"^16.13.1","rollup":"^1.27.5","rollup-plugin-size-snapshot":"^0.10.0","rollup-plugin-terser":"^5.1.3","rollup-plugin-typescript2":"^0.25.2","ts-jest":"^25.3.1","ts-node":"^8.5.2","tslib":"^1.10.0","typescript":"^3.7.2"},"peerDependencies":{"react":">=16.12.0","react-dom":">=16.12.0"},"gitHead":"1124cbdd027ff29460226ccc0d0ebfcbae1da163","description":"[![npm package][npm-badge]][npm] ![npm-bundle-size] ![Module formats][module-formats] ![npm-download-count]","bugs":{"url":"https://github.com/kaansey/react-localstorage-hook/issues"},"_id":"react-localstorage-hook@0.1.1","_nodeVersion":"19.5.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-AnrybUZbGZw9n7sMkDr3j6i+HImVh67zSsBuBVweIfesgkGnk/h64ugXYbPPHvEyS/uHr5iy18jnTmha48Y3Zg==","shasum":"977b7b5aa95e521115caf1e3ebfec5757b442349","tarball":"https://registry.npmjs.org/react-localstorage-hook/-/react-localstorage-hook-0.1.1.tgz","fileCount":8,"unpackedSize":6674,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtFqDg8r1l2+j5kp1LdDMYIIfeeNclc2E80nMeNPuBkQIgO3y7s5J8pEkQbpg6CBOkwiHvj/oJZXkhMc4rz3FJFAE="}]},"_npmUser":{"name":"kaansey","email":"kaanse@hotmail.com"},"directories":{},"maintainers":[{"name":"kaansey","email":"kaanse@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-localstorage-hook_0.1.1_1695236121916_0.2064317898044994"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-10T12:28:12.226Z","0.0.1":"2020-04-10T12:28:12.428Z","modified":"2023-09-20T18:55:22.242Z","0.1.0":"2020-04-10T13:11:04.192Z","0.1.1":"2023-09-20T18:55:22.066Z"},"maintainers":[{"name":"kaansey","email":"kaanse@hotmail.com"}],"homepage":"https://github.com/kaansey/react-localstorage-hook","keywords":["react","use","hook","local","store","localstorage","localStorage","local storage","useLocalStorage","persistent","consistent","state","storage"],"repository":{"type":"git","url":"git+https://github.com/kaansey/react-localstorage-hook.git"},"author":{"name":"Kaan Seyitogullari"},"bugs":{"url":"https://github.com/kaansey/react-localstorage-hook/issues"},"license":"MIT","readme":"# React useLocalStorage\n\n[![npm package][npm-badge]][npm] ![npm-bundle-size] ![Module formats][module-formats] ![npm-download-count]\n\n- It is an custom hook for browser localstorage management.\n- For the same localstorage `key` It is consistent across the component (synchronize values between components).\n- serializer (JSON.stringify)\n- deserializer (JSON.parse)\n\n### Demo\n\nhttps://codesandbox.io/s/react-localstorage-hook-yfj5f\n\n### Installation\n\nAdd `react-localstorage-hook` dependency\n\n```bash\nyarn add react-localstorage-hook\nnpm install react-localstorage-hook --save\n```\n\n### Usage\n\n```js\nimport useLocalStorage from 'react-localstorage-hook'\n```\n\n```js\nconst [values, setValue] = useLocalStorage(key, initialValue)\n```\n\n### Options\n\n| Name             | Type   | Default | Required | Description                                                                                   |\n| ---------------- | ------ | ------- | -------- | --------------------------------------------------------------------------------------------- |\n| **key**          | String | null    | true     | The key that will be used when calling localStorage.setItem(key)and localStorage.getItem(key) |\n| **initialValue** | any    | ''      | false    | The initial value of the data.                                                                |\n\n### License\n\nThis project is licensed under the MIT License - see the\n[LICENCE.md](./LICENCE.md) file for details\n\n[npm-download-count]: https://img.shields.io/npm/dm/react-localstorage-hook\n[npm-bundle-size]: https://img.shields.io/bundlephobia/min/react-localstorage-hook\n[npm-badge]: https://img.shields.io/npm/v/react-localstorage-hook?style=flat-square\n[npm]: https://www.npmjs.com/package/react-localstorage-hook\n[module-formats]: https://img.shields.io/badge/module%20formats-cjs%2C%20esm-green.svg?style=flat-square\n","readmeFilename":"README.md","description":"[![npm package][npm-badge]][npm] ![npm-bundle-size] ![Module formats][module-formats] ![npm-download-count]"}