1.0.2 • Published 4 years ago
levity v1.0.2
levity
LevelDB with indexing and collections for Node.js
Install
npm i levity
Example
import levity from 'levity'
const db = levity('example-db')
db.collection('books')
db.books.createIndex({ author: 1 })
await db.books.put('book1', {
author: 'Hemingway',
title: 'Islands in the Stream',
year: 1970
})
const book = await db.books.get('book1')
const books = await db.books.find({ author: 'Hemingway' })