Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
459 B

  1. var request = require('request')
  2. , JSONStream = require('JSONStream')
  3. , es = require('event-stream')
  4. var parser = JSONStream.parse(['rows', true]) //emit parts that match this path (any element of the rows array)
  5. , req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
  6. , logger = es.mapSync(function (data) { //create a stream that logs to stderr,
  7. console.error(data)
  8. return data
  9. })
  10. req.pipe(parser)
  11. parser.pipe(logger)