{"id":21528639,"url":"https://github.com/ruskydev/stor.js","last_synced_at":"2025-03-17T18:45:43.913Z","repository":{"id":162975149,"uuid":"638150477","full_name":"RuskyDev/Stor.js","owner":"RuskyDev","description":"Stor.js is a lightweight JavaScript library that provides a simple API for storing and retrieving data from localStorage.","archived":false,"fork":false,"pushed_at":"2023-05-09T10:57:21.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T06:11:23.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ruskydev.github.io/apps/stor.html","language":"JavaScript","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/RuskyDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-05-09T07:31:00.000Z","updated_at":"2023-05-09T10:56:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9e82bce-3368-4527-ba61-927aeb96c2ad","html_url":"https://github.com/RuskyDev/Stor.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2FStor.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2FStor.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2FStor.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2FStor.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RuskyDev","download_url":"https://codeload.github.com/RuskyDev/Stor.js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244092125,"owners_count":20396734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-24T01:53:56.280Z","updated_at":"2025-03-17T18:45:43.908Z","avatar_url":"https://github.com/RuskyDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stor.js\nStor.js is a lightweight JavaScript library that provides a simple API for storing and retrieving data from localStorage.\n\n# Usage\nTo use `Stor.js`, include the stor.js file in your HTML file:\n\n```html\n\u003cscript src=\"path/to/stor.js\"\u003e\u003c/script\u003e\n```\nor\n```html\n\u003cscript src=\"https://raw.githubusercontent.com/RuskyDev/Stor.js/main/stor.js\"\u003e\u003c/script\u003e\n```\nTo store data, use the `Stor.set()` function:\n\n```javascript\nStor.set('myKey', 'myValue', {expires: 60});\n```\nThe first argument is the key under which the data will be stored, the second argument is the value to be stored, and the third argument is an optional object containing additional options such as an expiration time in seconds.\n\nTo retrieve data, use the `Stor.get()` function:\n\n```javascript\nvar myData = Stor.get('myKey', 'defaultValue');\n```\nThe first argument is the key under which the data was stored, and the second argument is an optional default value to be returned if the key does not exist.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruskydev%2Fstor.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruskydev%2Fstor.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruskydev%2Fstor.js/lists"}