Socket
Socket
Sign inDemoInstall

@putout/cli-keypress

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @putout/cli-keypress

handle keypress


Version published
Weekly downloads
16K
decreased by-13.93%
Maintainers
1
Install size
35.7 kB
Created
Weekly downloads
 

Readme

Source

@putout/cli-keypress NPM version

putout keypress handler.

Install

npm i @putout/cli-keypress

Examples

const keyPress = require('keypress');
const {isStop} = keyPress();

// do some stuff until ctrl+c pressed
async function again() {
    if (isStop())
        return;
    
    await again();
}

Env Variables

KEYPRESS=1 can be used to force enable keypress.

License

MIT

Keywords

FAQs

Last updated on 30 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc