Skip to content

@wasson-ece/wstd

A somewhat eclectic collection of functions, types, and utilities that we find useful across Wasson-ECE projects.

Modules

Array

Safe concatenation and splitting utilities that handle null and undefined gracefully.

Logic

Sum types for TypeScript — Option, Either, These, and pattern matching.

Text

Parse and transform variable names across camelCase, PascalCase, kebab-case, and snake_case.

Object

Map over object values and keys with type safety.

Math

Rolling averages and numeric utilities.

URI

Encode objects to URI query strings.

Filtration

Type-safe filtering — remove null and undefined from arrays.

FP

Curried versions of all utilities for functional composition.