Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Documentation for how to unref readline
  • Loading branch information
vbinithyanandamv authored Dec 9, 2020
commit 74fff9d66ea70c6ce62cb45e6badb19b5501518e
12 changes: 12 additions & 0 deletions doc/api/readline.md
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,18 @@ const { createInterface } = require('readline');
})();
```

## Example: How to unref readline?
Comment thread
vbinithyanandamv marked this conversation as resolved.
Outdated

```js
const readline = require('readline');

const input = readline.createInterface({
input: process.stdin
});

process.stdin.unref();
```

## TTY keybindings

<table>
Expand Down