show-stream-progress
Shows progress of any async operation that streams results.
Last updated 7 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install show-stream-progress 
SYNC missed versions from official npm registry.

show-stream-progress build status

Shows progress of any async operation that streams results.

var showProgress =  require('show-stream-progress')
  , browserify   =  require('browserify')

browserify()
  .require(require.resolve('./entry.js'), { entry: true })
  .bundle({ debug: true })
  .pipe(showProgress(process.stderr))
  .pipe(fs.createWriteStream('./bundle.js'))
  ;
................................................................................

Although this example shows how to use this while building a bundle with browserify, show-stream-progress works with any stream.

Note: Actual output subject to change depending on browserify version. I make no guarantees ;)

Installation

npm i show-stream-progress

Demo

npm explore show-stream-progress
npm run demo

API

/**
 * @name showProgress
 * @function
 * @param out {Stream} The stream to output progress indicators to, defaults to process.stdout.
 * @return {Stream} Readable and writable stream that just passes along data written to it.
 */

Current Tags

  • 0.1.1                                ...           latest (7 years ago)

2 Versions

  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 2
This Week 8
This Month 51
Last Day 2
Last Week 16
Last Month 37
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |