/react-native-level

leveldb api on top of React's AsyncStorage

Primary LanguageJavaScriptMIT LicenseMIT

react-native-level

levelup API wrapper for react-native AsyncStorage.

This modules is a wrapper for our other module asyncstorage-down, which does all the real work and is implementing the leveldown API

var level = require('react-native-level')
var db = level('path/to/db', { /*...options...*/ })
db.put('blah');
db.batch([
  { type: 'put', key: 'tasty', value: 'wheat' },
  { type: 'put', key: 'chicken', value: 'feet' }
])