Closed rprieto closed 8 years ago
I'm open to that, would you please submit a PR?
No problem. Do you have a preference between:
metadata.read(function(err, data) {
if (err) return console.error(err);
console.log(/* message with the metadata */);
irishPub(process.cwd()).pipe(process.stdout);
});
irishPub
stream to emit a metadata
eventirishPub(process.cwd())
.on('metadata', function(meta) { console.log(/* message with the metadata */); })
.on('error', function (err) { console.error(err) })
.pipe(process.stdout)
No big preference if results are the same. Just submit a PR and we discuss from there. Thanks.
Such a handy tool, thanks! What do you think about also printing a few more things as a confirmation?
package.json
npm whoami