Skip to content

Commit

Permalink
Documentation for how to unref readline
Browse files Browse the repository at this point in the history
  • Loading branch information
vbinithyanandamv authored Dec 9, 2020
1 parent 348b7a9 commit 74fff9d
Showing 1 changed file with 12 additions and 0 deletions.
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?

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

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

process.stdin.unref();
```

## TTY keybindings

<table>
Expand Down

0 comments on commit 74fff9d

Please sign in to comment.