@wardmaes/kv

Key-value storage

Usage no npm install needed!

<script type="module">
  import wardmaesKv from 'https://cdn.skypack.dev/@wardmaes/kv';
</script>

README

Easy key-value storage.

Usage

Create your database at key-value.vercel.app.

Install kv

npm install @wardmaes/kv
# or
yarn add @wardmaes/kv

Create a new database connection

import kv from '@wardmaes/kv'
const db = new kv('db-name', 'db-secret')

Set a value

await db.set('city', 'Chicago')

Get a value

const value = await db.get('city') // Chicago