@tspro/ts-utils-lib
v3.4.0
Published
Useful library of typescript classes, modules and functions.
Downloads
894
Readme
TS Utils Lib
About
A small collection of TypeScript functions, containers, modules, etc. used in my personal projects.
Links
Homepage | Repository | Package
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/[email protected]/dist/index.es5.iife.js"></script>
<script src="https://unpkg.com/@tspro/[email protected]/dist/index.es5.polyfilled.iife.js"></script>
<!-- jsDelivr CDN: Load non-polyfilled or polyfilled bundles. -->
<script src="https://cdn.jsdelivr.net/npm/@tspro/[email protected]/dist/index.es5.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tspro/[email protected]/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));