Skip to content

kirill-dev-pro/bun-kv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bun-kv

A simple key-value store with SQLite that use bun:sqlite. No dependencies.

bun add bun-kv

Sample usage with TypeScript:

import { KV } from 'bun-kv'

type Item = {
  id: string
  created_at: number
}

const items = new KV<Item>('items.sqlite')

items.set('foo', { created_at: Date.now(), id: 'foo' })

const foo = items.get('foo')
      ^? { created_at: number, id: string } | undefined

License

MIT

About

Bun simple key-value storage with SQLite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published