Practical TypeScript utilities for everyday code
Build application code faster with ts-utils: a focused collection of extensions, helpers, interfaces and shared types.
A compact toolkit for common application tasks
Use only what you need through a consistent package API and fully typed building blocks.
Extensions
Add opt-in methods for arrays, dates and strings while keeping their TypeScript types available in your editor.
Explore array extensionsHelpers
Handle logging, files, storage, browser APIs and other recurring tasks with focused utilities.
Explore the logger helperInterfaces and types
Share typed data contracts and reusable aliases without rebuilding the same definitions.
Explore the shared interfacesSmall tools, one consistent import
Combine independent utilities without adding a framework or a runtime wrapper.
import { initArrayExtensions, LoggerHelper } from '@oardi/ts-utils';
initArrayExtensions();
const hobbies = people.map(person => person.hobby).distinct();
LoggerHelper.info('Loaded hobbies', hobbies);Install in seconds
Add ts-utils from npm, then import the utilities your application needs.
npm i @oardi/ts-utils