JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q80913F
  • License MIT

Useful TypeScript utilities and helpers.

Package Exports

  • @wavevision/ts-utils
  • @wavevision/ts-utils/strings/capitalize

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wavevision/ts-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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)