Slurp some of a stream to a string. Inspired by clojure's slurp.
var slurp = slurp;//Stops reading after 2048 bytes and passes the resulting string as content.//err is null if the stream contained less than 2048 bytes, otherwise err is//a string specifying the error along with the content read up to the point of//error.
my stream content
With npm do:
npm install slurp-some