{"id":15764904,"url":"https://github.com/technote-space/use-local-storage","last_synced_at":"2026-02-17T08:33:58.249Z","repository":{"id":41197669,"uuid":"344161492","full_name":"technote-space/use-local-storage","owner":"technote-space","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-24T16:53:34.000Z","size":1987,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T21:57:31.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/technote-space.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://paypal.me/technote0space"}},"created_at":"2021-03-03T14:51:06.000Z","updated_at":"2022-12-14T23:36:09.000Z","dependencies_parsed_at":"2023-10-01T18:54:36.903Z","dependency_job_id":"605d9f60-c138-44c4-8424-8cd694f57bdd","html_url":"https://github.com/technote-space/use-local-storage","commit_stats":{"total_commits":161,"total_committers":2,"mean_commits":80.5,"dds":0.3354037267080745,"last_synced_commit":"6f8c2c8acd376fdb1f9d76857e353f7f3ed46855"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":"technote-space/ts-package-template","purl":"pkg:github/technote-space/use-local-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fuse-local-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fuse-local-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fuse-local-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fuse-local-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technote-space","download_url":"https://codeload.github.com/technote-space/use-local-storage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technote-space%2Fuse-local-storage/sbom","scorecard":{"id":872232,"data":{"date":"2025-08-11","repo":{"name":"github.com/technote-space/use-local-storage","commit":"3f9c7c88902102d2fd7fed854e8567de9aa196e0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/add-release-tag.yml:1","Warn: no topLevel permission defined: .github/workflows/check-warnings.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/issue-opened.yml:1","Warn: no topLevel permission defined: .github/workflows/pr-opened.yml:1","Warn: no topLevel permission defined: .github/workflows/pr-updated.yml:1","Warn: no topLevel permission defined: .github/workflows/project-card-moved.yml:1","Warn: no topLevel permission defined: .github/workflows/sync-workflows.yml:1","Warn: no topLevel permission defined: .github/workflows/toc.yml:1","Warn: no topLevel permission defined: .github/workflows/update-dependencies.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/add-release-tag.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/add-release-tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/add-release-tag.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/add-release-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/add-release-tag.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/add-release-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/add-release-tag.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/add-release-tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-warnings.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/check-warnings.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-warnings.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/check-warnings.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-warnings.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/check-warnings.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:122: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:125: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:151: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:189: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:195: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:210: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:211: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-opened.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/issue-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-opened.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/issue-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-opened.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/issue-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-opened.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-opened.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-opened.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-opened.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-opened.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-opened.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:110: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-updated.yml:114: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/pr-updated.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/project-card-moved.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/project-card-moved.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sync-workflows.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/sync-workflows.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/toc.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/toc.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/toc.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/toc.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/update-dependencies.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/update-dependencies.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/update-dependencies.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/update-dependencies.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-dependencies.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/technote-space/use-local-storage/update-dependencies.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yml:96","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  37 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"28 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-96g7-g7g9-jxw8","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-353f-5xf4-qw67","Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw","Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T04:38:13.938Z","repository_id":41197669,"created_at":"2025-08-24T04:38:13.938Z","updated_at":"2025-08-24T04:38:13.938Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29537837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T12:22:56.856Z","updated_at":"2026-02-17T08:33:58.206Z","avatar_url":"https://github.com/technote-space.png","language":"TypeScript","funding_links":["https://paypal.me/technote0space"],"categories":[],"sub_categories":[],"readme":"# useLocalStorage\n\n[![npm version](https://badge.fury.io/js/%40technote-space%2Fuse-local-storage.svg)](https://badge.fury.io/js/%40technote-space%2Fuse-local-storage)\n[![CI Status](https://github.com/technote-space/use-local-storage/workflows/CI/badge.svg)](https://github.com/technote-space/use-local-storage/actions)\n[![codecov](https://codecov.io/gh/technote-space/use-local-storage/branch/master/graph/badge.svg)](https://codecov.io/gh/technote-space/use-local-storage)\n[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/use-local-storage/badge)](https://www.codefactor.io/repository/github/technote-space/use-local-storage)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/use-local-storage/blob/master/LICENSE)\n\nReact hook to handle localStorage.\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\u003cdetails\u003e\n\u003csummary\u003eDetails\u003c/summary\u003e\n\n- [Usage](#usage)\n  - [Install](#install)\n  - [Use](#use)\n- [Author](#author)\n\n\u003c/details\u003e\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Usage\n\n### Install\n\n`yarn add @technote-space/use-local-storage`\n\nor\n\n`npm i @technote-space/use-local-storage`\n\n### Use\n\ne.g.\n\n```ts\nimport {useCallback} from 'react';\nimport useLocalStorage from '@technote-space/use-local-storage';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\n\nexport type ThemeColor = 'light' | 'dark';\nconst useDarkMode = (): [ThemeColor, () =\u003e void, (isDarkMode: boolean) =\u003e void] =\u003e {\n  const [isDarkMode, setDarkMode] = useLocalStorage('is-dark-mode', useMediaQuery('(prefers-color-scheme: dark)'));\n  const toggleDarkMode            = useCallback(() =\u003e {\n    setDarkMode(isDarkMode =\u003e !isDarkMode);\n  }, []);\n  return [isDarkMode ? 'dark' : 'light', toggleDarkMode, setDarkMode];\n};\n\nexport default useDarkMode;\n```\n\n## Author\n\n[GitHub (Technote)](https://github.com/technote-space)  \n[Blog](https://technote.space)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnote-space%2Fuse-local-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnote-space%2Fuse-local-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnote-space%2Fuse-local-storage/lists"}