Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 611 Bytes

readme.md

File metadata and controls

34 lines (23 loc) · 611 Bytes

@brighter/storage-adapter-local

This is a local object storage adapter for the @brighter/storage library.

Quick Start

Installation, using npm:

npm i @brighter/storage-adapter-local

Usage:

import { Storage } from '@brighter/storage-adapter-local'

const storage = Storage({
  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: