Created
April 3, 2013 16:57
-
-
Save juliangruber/5303065 to your computer and use it in GitHub Desktop.
module-deps and through not working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// outputs everything | |
var mdeps = require('module-deps'); | |
mdeps(__dirname + '/index.js') | |
.on('error', console.error) | |
.on('data', console.log); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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