2.0.3 • Published 10 months ago

@katherineheadshall/simple-storage v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

simple-storage

A Typescrit written module to help you manage locastorage data, it's tiny, well tested, and ready for production.

Version 2.0.0

Install

pnpm i @katherineheadshall/simple-storage

Usage

get

import { ktget } from '@katherineheadshall/simple-storage';

// Getting an already stored user object
const user = ktget('user');
console.log(user);
// => {object}

Example

ktsetObject

let user = ktsetObject('user', {id: 1, username: 'example user'});
console.log(user);
// already returns the parsed stored item => {id: 1, username: 'example user'}

API

ktget('key')

key : string

simple-storage-available-methodsOutput
ktgetstring
ktsetstring
ktsetObjectany
ktgetObjectany
ktgetUniqueKeystring
ktremoveundefined

Remove an already stored item

ktremove('item')

License

MIT

2.0.3

10 months ago

1.0.2

11 months ago

2.0.2

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

2.0.0

10 months ago

1.0.3

11 months ago

1.0.1

4 years ago