{"id":16349508,"url":"https://github.com/jednano/storage","last_synced_at":"2026-02-04T15:02:06.350Z","repository":{"id":34180472,"uuid":"171086389","full_name":"jednano/storage","owner":"jednano","description":"A Storage class that implements the Storage interface of the Web Storage API.","archived":false,"fork":false,"pushed_at":"2023-01-04T21:39:31.000Z","size":1535,"stargazers_count":1,"open_issues_count":11,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T21:59:59.426Z","etag":null,"topics":["storage","web"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/jednano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-17T05:41:03.000Z","updated_at":"2021-08-03T20:15:20.000Z","dependencies_parsed_at":"2023-01-15T05:07:09.254Z","dependency_job_id":null,"html_url":"https://github.com/jednano/storage","commit_stats":null,"previous_names":["jedmao/storage"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jednano/storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fstorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fstorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fstorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fstorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jednano","download_url":"https://codeload.github.com/jednano/storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fstorage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261789227,"owners_count":23209774,"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":["storage","web"],"created_at":"2024-10-11T01:00:06.448Z","updated_at":"2026-02-04T15:02:06.272Z","avatar_url":"https://github.com/jednano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jedmao/storage\n\n[![GitHub Actions](https://github.com/jedmao/storage/workflows/Node%20CI/badge.svg?event=push)](https://github.com/jedmao/storage/actions)\n[![NPM version](http://img.shields.io/npm/v/@jedmao/storage.svg?style=flat)](https://www.npmjs.org/package/@jedmao/storage)\n[![npm license](http://img.shields.io/npm/l/@jedmao/storage.svg?style=flat-square)](https://www.npmjs.org/package/@jedmao/storage)\n[![codecov](https://codecov.io/gh/jedmao/storage/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/storage)\n[![BundlePhobia Minified](https://badgen.net/bundlephobia/min/@jedmao/storage?label=min)](https://bundlephobia.com/result?p=@jedmao/storage)\n[![BundlePhobia Minified + gzip](https://badgen.net/bundlephobia/minzip/@jedmao/storage?label=min%2Bgzip)](https://bundlephobia.com/result?p=@jedmao/storage)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Unicorn Approved](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://twitter.com/sindresorhus/status/457989012528316416?ref_src=twsrc%5Etfw\u0026ref_url=https%3A%2F%2Fwww.quora.com%2FWhat-does-the-unicorn-approved-shield-mean-in-GitHub)\n\n[![npm](https://nodei.co/npm/@jedmao/storage.svg?downloads=true)](https://nodei.co/npm/@jedmao/storage/)\n\nA `Storage` class that implements the [Storage](https://developer.mozilla.org/en-US/docs/Web/API/Storage) interface of the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API).\n\nThis class comes out-of-the-box with [TypeScript][] type annotations and [TSDoc](https://github.com/Microsoft/tsdoc#tsdoc) comments.\n\n## Installation\n\n```\n$ npm install [--save[-dev]] @jedmao/storage\n```\n\n## Usage\n\n```ts\nimport { Storage } from '@jedmao/storage'\n\nconst data = { bar: 42 }\nconst storage = new Storage()\n\nstorage.setItem('foo', data)\nstorage.getItem('foo') // \"[object Object]\"\nstorage.setItem('foo', JSON.stringify(data))\nstorage.getItem('foo') // \"{\"bar\":42}\"\n\nstorage.setItem('baz', 42)\nstorage.getItem('baz') // '42'\nstorage.key(1) // 'baz'\nstorage.length // 2\n\nstorage.removeItem('foo')\nstorage.length // 1\n\nstorage.clear()\nstorage.length // 0\n```\n\n[typescript]: http://www.typescriptlang.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjednano%2Fstorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjednano%2Fstorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjednano%2Fstorage/lists"}