| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4d0c70a commit 4e3aa9a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,9 +29,9 @@ const errnoException = util._errnoException; | |||
| 29 | 29 | const errors = require('internal/errors'); | |
| 30 | 30 | const readline = require('readline'); | |
| 31 | 31 | ||
| 32 | - exports.isatty = function(fd) { | ||
| 32 | + function isatty(fd) { | ||
| 33 | 33 | return Number.isInteger(fd) && fd >= 0 && isTTY(fd); | |
| 34 | - }; | ||
| 34 | + } | ||
| 35 | 35 | ||
| 36 | 36 | ||
| 37 | 37 | function ReadStream(fd, options) { | |
@@ -54,8 +54,6 @@ function ReadStream(fd, options) { | |||
| 54 | 54 | } | |
| 55 | 55 | inherits(ReadStream, net.Socket); | |
| 56 | 56 | ||
| 57 | - exports.ReadStream = ReadStream; | ||
| 58 | - | ||
| 59 | 57 | ReadStream.prototype.setRawMode = function(flag) { | |
| 60 | 58 | flag = !!flag; | |
| 61 | 59 | this._handle.setRawMode(flag); | |
@@ -90,7 +88,6 @@ function WriteStream(fd) { | |||
| 90 | 88 | } | |
| 91 | 89 | } | |
| 92 | 90 | inherits(WriteStream, net.Socket); | |
| 93 | - exports.WriteStream = WriteStream; | ||
| 94 | 91 | ||
| 95 | 92 | ||
| 96 | 93 | WriteStream.prototype.isTTY = true; | |
@@ -131,3 +128,6 @@ WriteStream.prototype.clearScreenDown = function() { | |||
| 131 | 128 | WriteStream.prototype.getWindowSize = function() { | |
| 132 | 129 | return [this.columns, this.rows]; | |
| 133 | 130 | }; | |
| 131 | + | ||
| 132 | + | ||
| 133 | + module.exports = { isatty, ReadStream, WriteStream }; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments