0.1.9 • Published 10 months ago

renaissance-local-storage v0.1.9

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

10 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

2 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

7 years ago

0.1.0

7 years ago