A selection of TypeScript utils.
Monorepo publishing multiple NPM-packages:
@mrpelz/misc-utils
miscellaneous TypeScript helpersdata
miscellaneous data conversion helpersnumber
number (e.g. from/to binary) conversion helpersoop
helper-utils for working in object-oriented codepromise
Promise helpersrolling-number cosume and update a number in a given range (e.g. for request IDs)sleep
Sleep async execution for a given timestring
string conversion helpers
@mrpelz/modifiable-dateepochs
determine the lengths of time periodsmodifiable-date
calculate, round with and forward/rewind in time units
@mrpelz/observableobservable
publish and consume message streams or groups of message streams, convert messages in transitstate
handle message streams with certain constrains (e.g. booleans, enum-like) more comfortablytimer
handle deferred tasks
@mrpelz/structdynamic
define and encode/decode variable-size C-style structs in TypeScriptstatic
define and encode/decode static/fixed-size C-style structs in TypeScript