2.0.3 • Published 9 months ago

@katherineheadshall/simple-storage v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 months ago

1.0.2

9 months ago

2.0.2

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

2.0.0

9 months ago

1.0.3

9 months ago

1.0.1

4 years ago