thlorenz / irish-pub

Feel like npm is drunk or maybe you are and want to verify what gets published via `npm publish`? irish-pub has you covered.
MIT License
69 stars 8 forks source link

Confirm more details about to be published #1

Closed rprieto closed 8 years ago

rprieto commented 10 years ago

Such a handy tool, thanks! What do you think about also printing a few more things as a confirmation?

npm publish will create version 1.0.3 as rprieto
and include the following files:
thlorenz commented 9 years ago

I'm open to that, would you please submit a PR?

rprieto commented 9 years ago

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(process.cwd())
.on('metadata', function(meta) { console.log(/* message with the metadata */); })
.on('error', function (err) { console.error(err) })
.pipe(process.stdout)
thlorenz commented 9 years ago

No big preference if results are the same. Just submit a PR and we discuss from there. Thanks.