UNPKG

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