Skip to content

Instantly share code, notes, and snippets.

@juliangruber
Created April 3, 2013 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliangruber/5303065 to your computer and use it in GitHub Desktop.
Save juliangruber/5303065 to your computer and use it in GitHub Desktop.
module-deps and through not working
// outputs everything
var mdeps = require('module-deps');
mdeps(__dirname + '/index.js')
.on('error', console.error)
.on('data', console.log);
// outputs nothing
var mdeps = require('module-deps');
var through = require('through');
mdeps(__dirname + '/index.js')
.on('error', console.error)
.pipe(through(console.log));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment