0.7.5 • Published 7 years ago

@fayti1703/async-utils v0.7.5

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
7 years ago

@fayti1703/async-utils

Various async utility functions

slurp(stream, encoding)

"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)

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)

Sends a HTTP request to the specified server. This function acts just as request does otherwise.

msgToObj(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)

An alias for setTimeout[util.promisify.custom].

0.7.5

7 years ago

0.7.4

7 years ago

0.7.3

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago