1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.ignoreStream = void 0;
|
4 | /**
|
5 | * Safely ignores a Node.js readable stream.
|
6 | */
|
7 | function ignoreStream(stream) {
|
8 | // Prevent an unhandled error from crashing the process.
|
9 | stream.on('error', () => { });
|
10 | // Waste the stream.
|
11 | stream.resume();
|
12 | }
|
13 | exports.ignoreStream = ignoreStream;
|
14 | //# sourceMappingURL=ignoreStream.js.map |
\ | No newline at end of file |