PHP 8.2.30
Preview: all_docs.js Size: 459 B
//lib/node_modules/npm/node_modules/JSONStream/examples/all_docs.js

var request = require('request')
  , JSONStream = require('JSONStream')
  , es = require('event-stream')

var parser = JSONStream.parse(['rows', true]) //emit parts that match this path (any element of the rows array)
  , req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
  , logger = es.mapSync(function (data) {  //create a stream that logs to stderr,
    console.error(data)
    return data  
  })

req.pipe(parser)
parser.pipe(logger)

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
459 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).