{"id":16346849,"url":"https://github.com/simonsmith/storage-wrap","last_synced_at":"2025-04-12T08:54:11.907Z","repository":{"id":12708932,"uuid":"15381442","full_name":"simonsmith/storage-wrap","owner":"simonsmith","description":"Simple wrapper for local/sessionStorage","archived":false,"fork":false,"pushed_at":"2014-01-13T14:52:53.000Z","size":136,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T08:54:06.749Z","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/simonsmith.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}},"created_at":"2013-12-22T20:17:03.000Z","updated_at":"2022-07-26T18:23:33.000Z","dependencies_parsed_at":"2022-08-30T20:00:57.561Z","dependency_job_id":null,"html_url":"https://github.com/simonsmith/storage-wrap","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fstorage-wrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fstorage-wrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fstorage-wrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fstorage-wrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonsmith","download_url":"https://codeload.github.com/simonsmith/storage-wrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543883,"owners_count":21121838,"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-10-11T00:38:04.881Z","updated_at":"2025-04-12T08:54:11.884Z","avatar_url":"https://github.com/simonsmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storage wrap\n\nNothing fancy, just a simple wrapper for local/sessionStorage that removes the need to keep parsing and stringifying objects.\n\n## Installation\n\nBower\n\n\tbower install storage-wrap --save\n\nNPM\n\n\tnpm install storage-wrap --save\n\n## Usage\n\nIt uses exactly the same API as the native Storage objects except it will try to `JSON.parse` objects and arrays.\n\n```js\n// Saves as - \"{\"foo\":\"bar\"}\"\nstorageWrap.setItem('test', {\n\tfoo: 'bar'\t\n});\n\n// Returns an object\nstorageWrap.getItem('test');\n```\n\nIt uses `localStorage` by default, but it can easily be changed with `setAdaptor`\n\n```js\nstorageWrap.setAdaptor(sessionStorage);\n```\n\nUse it as a global or as an AMD module.\n\n## Tests\n\n\tnpm install\n\tgrunt test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsmith%2Fstorage-wrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonsmith%2Fstorage-wrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsmith%2Fstorage-wrap/lists"}