Skip to main content

Utilities

There are many good general-purpose Javascript libraries out there, some modern and some that are a little long in the tooth.

While @spa-tools/utilities is yet another to add to the list, it's succinctly written in TypeScript with a focus on being requirements-driven. As such, we hope you'll find one or two or even a few helpers that are just that: helpful.

Colors
Conditionals
Data
Dates
DOM
Errors
Execution Control
Numbers
Strings
Type Helpers
URLs
TypeScript First
Zero Dependencies
15 kB (index.cjs)
Tree-shakable

Installation

To install Utilities in your project, use your favorite package manager and run the respective command:

npm install @spa-tools/utilities

Quickstart

Expand the categories in the sidebar and go for it!