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

๐Ÿ›  Useful TypeScript utilities and helpers

License

Notifications You must be signed in to change notification settings

wavevision/ts-utils

Folders and files

NameName
Last commit message
Last commit date
Apr 16, 2021
Oct 29, 2020
Mar 13, 2020
Apr 16, 2021
Jan 14, 2020
Jan 14, 2020
Jan 14, 2020
Jan 14, 2020
Oct 29, 2020
Jan 14, 2020
Jan 16, 2020
Apr 16, 2021
Oct 29, 2020
Apr 16, 2021
Jan 14, 2020
Jan 15, 2020
Jan 15, 2020
May 29, 2021

Repository files navigation

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)