{"id":16760586,"url":"https://github.com/ryanve/cargo","last_synced_at":"2025-07-16T08:46:59.853Z","repository":{"id":57194467,"uuid":"8440498","full_name":"ryanve/cargo","owner":"ryanve","description":"Web storage API JavaScript module","archived":false,"fork":false,"pushed_at":"2014-05-13T16:58:01.000Z","size":404,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T14:00:05.333Z","etag":null,"topics":["javascript","javascript-library","local-storage","storage"],"latest_commit_sha":null,"homepage":"https://npm.im/cargo","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/ryanve.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-02-26T19:50:10.000Z","updated_at":"2024-02-04T16:57:40.000Z","dependencies_parsed_at":"2022-09-16T01:34:29.649Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/cargo","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ryanve/cargo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fcargo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fcargo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fcargo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fcargo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/cargo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fcargo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265497997,"owners_count":23777093,"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":["javascript","javascript-library","local-storage","storage"],"created_at":"2024-10-13T04:23:58.878Z","updated_at":"2025-07-16T08:46:59.804Z","avatar_url":"https://github.com/ryanve.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cargo\n#### HTML5 [web storage API](http://www.w3.org/TR/webstorage/) JavaScript module\n\n- Abstracts the native storage APIs into a simple intuitive interface\n- Uses native `localStorage` and `sessionStorage` [where available](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Storage#Browser_compatibility)\n- Gracefully degrades to [temporary](#storage-duration) storage\n- Works standalone or with build tools like [browserify](https://www.npmjs.org/package/browserify) or [ender](https://www.npmjs.org/package/ender)\n\n## API ([0.8](../../releases))\n\n### `cargo.local()`\n- `cargo.local(key?, value?)`\n  - `cargo.local()` get all\n  - `cargo.local(key)` get \n  - `cargo.local(key, value)` set \n  - `cargo.local(key, undefined)` remove\n- `cargo.local.get(key)`\n- `cargo.local.set(key, value)`\n- `cargo.local.remove(key)`\n\n### `cargo.session()`\n- `cargo.session(key?, value?)`\n  - `cargo.session()` get all\n  - `cargo.session(key)` get \n  - `cargo.session(key, value)` set \n  - `cargo.session(key, undefined)` remove\n- `cargo.session.get(key)`\n- `cargo.session.set(key, value)`\n- `cargo.session.remove(key)`\n\n### `cargo.temp()`\n- `cargo.temp(key?, value?)`\n  - `cargo.temp()` get all\n  - `cargo.temp(key)` get \n  - `cargo.temp(key, value)` set \n  - `cargo.temp(key, undefined)` remove\n- `cargo.temp.get(key)`\n- `cargo.temp.set(key, value)`\n- `cargo.temp.remove(key)`\n\n## Storage duration\n- [\u003cb\u003elocal\u003c/b\u003e](http://www.w3.org/TR/webstorage/#the-localstorage-attribute) storage stores for unlimited browser sessions\n- [\u003cb\u003esession\u003c/b\u003e](http://www.w3.org/TR/webstorage/#the-sessionstorage-attribute) storage stores for the current browser session\n- \u003cb\u003etemp\u003c/b\u003e storage stores until the user refreshes or closes the current page\n\n## Fund\nSupport this project by [tipping the developer](https://www.gittip.com/ryanve/) \u003csamp\u003e\u003cb\u003e=)\u003c/b\u003e\u003c/samp\u003e\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fcargo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Fcargo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fcargo/lists"}