Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When will publish a new package to NPM? #201

Open
Fental opened this issue May 20, 2020 · 3 comments
Open

When will publish a new package to NPM? #201

Fental opened this issue May 20, 2020 · 3 comments

Comments

@Fental
Copy link

Fental commented May 20, 2020

I installed the newest package(version code is 1.0.0), but the following code was invalid.

//
  // Disable prompt's built-in SIGINT handling:
  //
  prompt.start({noHandleSIGINT: true});
  
  process.on('SIGINT', function() {
    console.log("This will execute when you hit CTRL+C");
    process.exit();
  });
@3stacks
Copy link

3stacks commented Jun 16, 2020

I don't think this project is actively maintained. If you don't mind switching, enquirer (https://www.npmjs.com/package/enquirer) is a pretty nice alternative (last published 2 months ago too)

@Fental
Copy link
Author

Fental commented Jul 20, 2020

I don't think this project is actively maintained. If you don't mind switching, enquirer (https://www.npmjs.com/package/enquirer) is a pretty nice alternative (last published 2 months ago too)

OK, let me have a try. Thanks.

@caub
Copy link
Contributor

caub commented Nov 23, 2021

I don't understand how the noHandleSIGINT should work, and why it doesn't work anymore, maybe it's because the SIGINT handler should be passed to the readline instance, that is handled through the read package:
https://github.com/npm/read/blob/main/lib/read.js#L64

@rubbingalcoholic If you've a bit of time, that would be cool if you can help us figure out how this option should work? I think you implemented it in prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants