1.5.2 • Published 1 year ago
@brighter/storage v1.5.2
@brighter/storage
This is the core object storage library.
Instead of manually installing and injecting the dependencies, you'll most likely want to use one of the following storage adapters that come pre-bundled with everything required:
If you still wish to manually install and inject the dependencies, please proceed.
Quick Start
Installation, using npm:
npm i @brighter/storage
Usage:
import { Storage } from '@brighter/storage'
const storage = Storage({
type: 'local',
path: '/tmp/storage'
})
const main = async () => {
await storage.write('msg', 'hi')
const msg = await storage.read('msg')
console.log(msg)
}
main().catch(console.error)
For more information:
- have a look at the demo folder or
- dive straight into the documentation.
1.2.0
1 year ago
1.1.0
1 year ago
1.5.2
1 year ago
1.5.1
1 year ago
1.4.2
1 year ago
1.5.0
1 year ago
1.4.1
1 year ago
1.4.0
1 year ago
1.0.4
1 year ago
1.3.0
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
1.0.0-beta.10
1 year ago
1.0.0-beta.9
1 year ago
1.0.0-beta.8
1 year ago
1.0.0-beta.7
1 year ago
1.0.0-beta.6
1 year ago
1.0.0-beta.5
1 year ago
1.0.0-beta.4
1 year ago
1.0.0-beta.3
1 year ago
1.0.0-beta.1
1 year ago