{"id":26238657,"url":"https://github.com/swiftcarrot/storage2","last_synced_at":"2025-04-22T23:47:20.161Z","repository":{"id":34084205,"uuid":"37906797","full_name":"swiftcarrot/storage2","owner":"swiftcarrot","description":"html5 storage interface for node and browser","archived":false,"fork":false,"pushed_at":"2023-04-16T15:17:58.000Z","size":32,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T22:48:15.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/storage2","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swiftcarrot.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":"2015-06-23T08:30:57.000Z","updated_at":"2021-06-23T07:36:54.000Z","dependencies_parsed_at":"2024-06-18T21:10:16.187Z","dependency_job_id":null,"html_url":"https://github.com/swiftcarrot/storage2","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.040000000000000036","last_synced_commit":"cfdeb4948d91428da709f75eaa3d7414826f0034"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Fstorage2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Fstorage2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Fstorage2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Fstorage2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftcarrot","download_url":"https://codeload.github.com/swiftcarrot/storage2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343896,"owners_count":21415036,"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":"2025-03-13T06:18:01.433Z","updated_at":"2025-04-22T23:47:20.140Z","avatar_url":"https://github.com/swiftcarrot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# storage2\n\n[![Build Status](https://travis-ci.org/swiftcarrot/storage2.svg)](https://travis-ci.org/swiftcarrot/storage2) [![codecov.io](http://codecov.io/github/swiftcarrot/storage2/coverage.svg?branch=master)](http://codecov.io/github/swiftcarrot/storage2?branch=master)\n\nHTML5 storage interface for node and browser\n\n- `node`: simple memory storage\n- `browser with storage api available`: return global storage object directly (`window.localStorage` and `window.sessionStorage`)\n- `browser without storage api`: cookie fallback\n\n### Installation\n\n```sh\nnpm install storage2 --save\n```\n\n### Usage\n\n```javascript\nvar ls = require(\"storage2\").localStorage;\nvar ss = require(\"storage2\").sessionStorage;\n```\n\nFor safari private mode, `localStorage` and `sessionStorage` will still be available globally but storage usage will cause an exception. `localStorage = require('storage2').localStorage` is not recommended and a different variable name like `ls` should always be used.\n\n### API\n\n[Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Storage)\n\n### License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftcarrot%2Fstorage2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftcarrot%2Fstorage2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftcarrot%2Fstorage2/lists"}