TsUtilsLib - A Personal TypeScript Utils Library
A small collection of TypeScript functions, containers, etc. used in my personal projects.
Resources
NPM Package | GitHub Repository
API Reference
API Reference (latest)
Quick Start
Install
npm install @tspro/ts-utils-lib
Import
// Import required stuff.
import { UniMap, Utils } from "@tspro/ts-utils-lib";
Require
// Require required stuff.
const { UniMap, Utils } = require("@tspro/ts-utils-lib");
Browser Script
- Available in version
2.1.0. - These bundles are transpiled with
ES5target. - With non-polyfilled versions you can use option to your own polyfilling choise.
<!-- Unpkg CDM: Load non-polyfilled or polyfilled bundles. -->
<script src="https://unpkg.com/@tspro/ts-utils-lib@3.4.0/dist/index.es5.iife.js"></script>
<script src="https://unpkg.com/@tspro/ts-utils-lib@3.4.0/dist/index.es5.polyfilled.iife.js"></script>
<!-- jsDelivr CDN: Load non-polyfilled or polyfilled bundles. -->
<script src="https://cdn.jsdelivr.net/npm/@tspro/ts-utils-lib@3.4.0/dist/index.es5.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tspro/ts-utils-lib@3.4.0/dist/index.es5.polyfilled.iife.js"></script>
<script>
const { UniMap, Utils } = window.TsUtilsLib;
</script>
Usage
const map = new UniMap<string, number>();
console.log(Utils.Str.stringify(map));
License
This project is licensed under the MIT License.
You are free to use, modify, and distribute this software under the terms of the MIT License.
The full license text is available in the project repository.
Disclaimer
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.