npm.io
0.3.0 • Published 7 years ago

couchbase-js

Licence
MIT
Version
0.3.0
Deps
2
Size
135 kB
Vulns
1
Weekly
0

Overview

This project implements a pure JS client based on the undocumented Couchbase REST APIs that power the Web UI. As such, it only works if you already have credentials for the UI.

Usage

const conn = new Couchbase('https://some.server:18091', 'myuser', 'mypass', { insecure: true });
const bucket = await conn.openBucket('somebucket');

const data = await bucket.get('my::document::id');