@brighter/storage-adapter-local
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

@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:

Package Sidebar

Install

npm i @brighter/storage-adapter-local

Weekly Downloads

1

Version

1.5.2

License

MIT

Unpacked Size

3.6 kB

Total Files

6

Last publish

Collaborators

  • brihter