@wavevision/ts-utils
v1.0.1
Published
Useful TypeScript utilities and helpers.
Downloads
57
Maintainers
Readme
Set of useful TypeScript utilities and helpers.
Installation
Via Yarn
yarn add @wavevision/ts-utilsor npm
npm install --save @wavevision/ts-utilsContents
The package contains useful functions for:
- components – get
displayNameof 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)
