UNPKG

lasso

Version:

Lasso.js is a build tool and runtime library for building and bundling all of the resources needed by a web application

16 lines (15 loc) 382 B
module.exports = function(stream) { return new Promise((resolve, reject) => { var str = ''; stream .on('data', function(data) { str += data; }) .on('error', function(err) { reject(err); }) .on('end', function() { resolve(str); }); }); };