0.1.9 • Published 2 years ago

renaissance-local-storage v0.1.9

Weekly downloads
5
License
MIT
Repository
github
Last release
2 years ago

renaissance-local-storage

Test Status

local storage adapter for renaissance

Usage

const { r } = require('renaissance')
const LocalStorageAdapter = require('renaissance-local-storage')
const adapter = r.registerAdapter('localStorage', LocalStorageAdapter)

adapter.save('foo', 'bar');
console.log(adapter.get('foo'));

API

adapter.save({string} key, {string} value)

returns {bool}

Save value as key in local storage

adapter.update({string} key, {string} value)

returns {bool}

Update key in local storage with value

adapter.get({string} key)

returns {string}

Get value from key in local storage

adapter.remove({string} key)

returns {bool}

Remove key and corresponding value from local storage

adapter.clear()

returns {bool}

Clear local storage

Contributing

See CONTRIBUTING

Credits

See CREDITS

License

MIT (c) 2017 - 2023 frncsdrk and contributors

0.1.9

2 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

8 years ago

0.1.0

8 years ago