{"id":48289504,"url":"https://github.com/danrotaru/storage.js","last_synced_at":"2026-04-04T23:01:51.596Z","repository":{"id":175828676,"uuid":"289515108","full_name":"DanRotaru/storage.js","owner":"DanRotaru","description":"Storage.js - lightweight javascript localstorage API library","archived":false,"fork":false,"pushed_at":"2024-05-10T12:21:18.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-10T13:35:34.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanRotaru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-22T15:30:33.000Z","updated_at":"2024-05-10T13:35:35.225Z","dependencies_parsed_at":null,"dependency_job_id":"a3e1f3d1-efb9-4fae-bd2f-998ce56fd243","html_url":"https://github.com/DanRotaru/storage.js","commit_stats":null,"previous_names":["danrotaru/storage.js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DanRotaru/storage.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanRotaru%2Fstorage.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanRotaru%2Fstorage.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanRotaru%2Fstorage.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanRotaru%2Fstorage.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanRotaru","download_url":"https://codeload.github.com/DanRotaru/storage.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanRotaru%2Fstorage.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31418287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: 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":"2026-04-04T23:01:42.137Z","updated_at":"2026-04-04T23:01:51.570Z","avatar_url":"https://github.com/DanRotaru.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storage.js\nStorage.js - the smallest, lightweight library to interactive with LocalStorage API.\n\n## Init\nAll data's are stocked in one localStorage key. By default localStorage key name is storage.js\n```javascript\nstorage.init(\"Storage name\", \"local\");\n\n// Seccond argument is optional (local || session), by default is local\n```\n\n## Get all data\n```javascript\n// In string format\nstorage.raw();\n\n// In JSON format\nstorage.json();\n```\n## Set/update value\n`value` (string) \u0026mdash; data value\n`key` (string) \u0026mdash; key value.\n```javascript\n// Add some local data\nstorage.add(value, key);\n\n// The same function\nstorage.update(value, key)\n```\n\n## Get value\n`key` (string) \u0026mdash; key value.\n```javascript\nstorage.get(key);\n```\n## Remove data\n`key` (string) \u0026mdash; key value.\n```javascript\nstorage.remove(key);\n```\n## Transfer data from sessionStorage to localStorage and conversely\n`to` (string) \u0026mdash; transfer data to (\"local\" || \"session\").\n```javascript\nstorage.transfer(to);\n```\nIn all functions, `key` can also contain multiple object location.\nE.g. `someKey`, `user.name`, `user.settings.theme`\n```javascript\nstorage.add(\"some value\", \"someKey\");\nstorage.add(\"Dan\", \"user.name\");\nstorage.add(\"dark\", \"user.settings.theme\");\n```\n![set/update value](https://i.ibb.co/S6YPSK7/image.png)\n\n## P.S.\nIt is important to use storage, not Storage name, because it is used, or you can change object name storage to whatever you want.\n## License\nReleased under the [MIT license](http://www.opensource.org/licenses/MIT).\nCreated by [DanRotaru](https://t.me/danrotaru).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanrotaru%2Fstorage.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanrotaru%2Fstorage.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanrotaru%2Fstorage.js/lists"}