Various (async) Promise utility functions
npm install @fayti1703/async-utils#### slurp(stream, encoding)
* stream [
* encoding ['utf-8'
* Returns: [
"Slurps" the given stream; all remaining data will be consumed and returned.
Note: This function rejects if the stream emits an 'error' event.
#### request(options, body, encoding)
* options [
Sends a HTTPS request to the specified server. The resulting response is passed to msgToObj, the result of which is returned.
#### requestInsecure(options, body, encoding)
* options [
Sends a HTTP request to the specified server. This function acts just as request does otherwise.
#### msgToObj(message)
* message [
Converts message into an equivalent object with an added data property and toString function.
Note: Due to the implementation of this function, properties from the message may be dropped. If this includes a property you need, please file a bug report.
#### sleep(ms)
* ms [
An alias for setTimeout[util.promisify.custom].
[stream_readable]: https://nodejs.org/api/stream.html#stream_class_stream_readable
[string]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type
[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer
[Object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
[Promise]:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
[url]: https://nodejs.org/api/url.html#url_the_whatwg_url_api
[http_incomingmessage]: https://nodejs.org/api/http.html#http_class_http_incomingmessage
[http_serverresponse]: https://nodejs.org/api/http.html#http_class_http_serverresponse