Socket
Book a DemoInstallSign in
Socket

@wardmaes/kv

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wardmaes/kv

Key-value storage

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 23 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts