Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

datcat

datproject23ISCdeprecated1.2.1

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

module to simplify streaming a remote hypercore feed and catting the results

readme

deprecated

More info on active projects and modules at dat-ecosystem.org


datcat

module to simplify streaming a remote hypercore feed in memory so you can cat the results. works with 'raw' hypercores or hyperdrives. autodetects hyperdrive/dat encoding and decodes metadata for you automatically.

usage

var stream = require('datcat')(datLink)
stream
  .on('data', function (d) {
    console.log(d)
  })
  .on('end', function () {
    stream.close()
  })

note you must call .close() manually to unref and allow your process to exit (if you need that)