Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onesy-me/storage
Storage
https://github.com/onesy-me/storage
amaui browser front-end frontend javascript js library localstorage sessionstorage storage storages typescript utils web
Last synced: 10 days ago
JSON representation
Storage
- Host: GitHub
- URL: https://github.com/onesy-me/storage
- Owner: onesy-me
- License: mit
- Created: 2022-02-07T23:27:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T20:30:29.000Z (23 days ago)
- Last Synced: 2024-12-11T20:36:35.731Z (23 days ago)
- Topics: amaui, browser, front-end, frontend, javascript, js, library, localstorage, sessionstorage, storage, storages, typescript, utils, web
- Language: TypeScript
- Homepage: https://docs.onesy.me/library/storage
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
onesy Storage
Storage
MIT license
Production ready
UMD 3.2kb gzipped
100% test cov
Browser
Very simple code
Modern code
Junior friendly
Typescript
Made with :yellow_heart:
## Getting started
### Add
```sh
yarn add @onesy/storage
```### Use
```javascript
import OnesyStorage from '@onesy/storage';const onesyStorage = new OnesyStorage();
const value = { a: 4 };
// Add
onesyStorage.add('a', value);// Get
onesyStorage.get('a');// { a: 4 }
// Remove
onesyStorage.remove('a');onesyStorage.get('a');
// null
```### Dev
Install
```sh
yarn
```Test
```sh
yarn test
```### Prod
Build
```sh
yarn build
```