Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gateway-proxy / usr / share / gateway-proxy / app / node_modules / @commitlint / read / lib / stream-to-promise.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.streamToPromise = void 0;
function streamToPromise(stream) {
    const data = [];
    return new Promise((resolve, reject) => stream
        .on('data', (chunk) => data.push(chunk.toString('utf-8')))
        .on('error', reject)
        .on('end', () => resolve(data)));
}
exports.streamToPromise = streamToPromise;
//# sourceMappingURL=stream-to-promise.js.map