blob: 49650decab5e1830318cd8c25a279bcab6fca6fc [file] [log] [blame]
var CouchBulkImporter = require('../')
var BulkBadger = require('bulkbadger')
var fs = require('fs')
var JSONStream = require('JSONStream')
fs
.createReadStream(__dirname + '/ldjson.json')
.pipe(JSONStream.parse())
.pipe(new BulkBadger())
.pipe(new CouchBulkImporter({
url: 'http://tester:testerpass@localhost:5984/ldjsonhellooo'
}))