1.0.2 • Published 4 years ago

levity v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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' })
1.0.2

4 years ago

1.0.1

4 years ago