1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
Oinktube/node_modules/level-concat-iterator/example.js
2022-07-15 11:08:01 -03:00

13 lines
286 B
JavaScript

var level = require('level')
var concat = require('.')
level('DB', function (err, db) {
if (err) throw err
db.put('foo', 'bar', function (err) {
if (err) throw err
concat(db.iterator(), function (err, data) {
if (err) throw err
console.log(data)
})
})
})