Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Latest commit

Β 

History

History
33 lines (23 loc) Β· 1.37 KB

README.md

File metadata and controls

33 lines (23 loc) Β· 1.37 KB

Wavevision s.r.o.

TypeScript Utils

CI Coverage Status npm

Set of useful TypeScript utilities and helpers.

Installation

Via Yarn

yarn add @wavevision/ts-utils

or npm

npm install --save @wavevision/ts-utils

Contents

The package contains useful functions for:

  • components – get displayName of a React component with fallback for unknown
  • dom – create data attributes, get typed elements by various selectors (browser only)
  • numbers – generate numeric IDs, format floats
  • strings – generate random strings, format, capitalize, shallow stringify objects
  • type – type safe checkers
  • url – parse current URL including query string (browser only)