ts-utils

Comprehensive TypeScript/JavaScript utility library with cross-environment support (Node.js, browser, web worker) providing helper functions, polyfills (ES5-ES2023), type checking utilities, and optimized implementations for better minification and code readability.

View on GitHub

@nevware21/ts-utils Documentation

Comprehensive TypeScript/JavaScript Utility Library

GitHub Workflow Status (main) codecov npm version downloads downloads Sponsor

Overview

This documentation site provides comprehensive guides and reference materials for @nevware21/ts-utils, a collection of general JavaScript functions written in TypeScript. These utilities help reduce code duplication, improve minification, and provide consistent functionality across different JavaScript environments.

If you find this library useful, please consider sponsoring @nevware21 to support ongoing development and maintenance.

Documentation Resources

Getting Started

Reference

Advanced Topics

Library Features

Polyfill Information

Some polyfills are provided for simple backward compatibility to enable the utility functions in older environments. These polyfills are not exported as part of the main module. If you need them, you will need to:

  1. Import the “polyfill” file directly
  2. Host and load the provided bundle/ts-polyfills-utils.min.js
  3. Or provide your own alternative implementations

Frequently Asked Questions

When should I use ts-utils instead of native methods?

You should consider using ts-utils when:

Does using ts-utils increase my bundle size?

No, ts-utils is designed with tree-shaking in mind. You only pay for what you import, and the minified versions of these functions are typically smaller than their native counterparts when used repeatedly.

How do I contribute to ts-utils?

See our Contributing Guide for information on how to contribute.

Support and Community