@xutl - Xtra Useful Tool Libraries
Packages and modules are most useful if they do one thing and only that one thing. These are a grouo of extremely useful packages in that they do just one thing and don’t try to be everything to everyone.
Simple library to facilitate using the defer pattern, which makes working with promises much easier for certain circumstances.
- callback conversion
- timeout handling
- full typescript support
Library to provide async iterable queues. A async iterable queue is something that you can push something onto (such as data that comes in on events) and that you can also async iterate over using
for await (let item of queue).
One eXtremely Useful Tool Library to provide async events. The event handler is allowed to return a Promise and
event emitting will wait for that Promise to complete before continuing on to the next event handler.
.emit also returns a Promise
which will resolve when all handlers have completed.
Library to wrap
ReadableStream to return an
AyncIterable. Very useful for reading files line by line or iterating over events.
Simple library to facilitate using async iterators.
Parsing JSON with comments and reading/writing JSON files.
A wrapper around the
crypto module that makes working with cryptography a bit easier.
A simple tool to format log-lines. Also capable of parsing them back and forwarding them via UDP.
A simple tool to facilitate using AbortController patterns work with async constructs.
A simple and small test-framework for node stuff that’s basically half of Mocha. The half it doesn’t support is configurability and coverage, since those are easy to add with separate tools.
A simple way to replace module dependencies with mocks.
An easy way to mock timers useful for testing, when timers should be intercepted and manually advanced.
An easy way to manage the
Easy way to handle creating github releases.
Easy way to package up files and have a way to random access them in the archive
Simple argument parser for CLI programs
Simple sub-command executor for CLI programs