noun
a number of things forming a series or set.
A collection of useful utility functions, All fully typed and documented
npm i tsuite
Import individual utilities for optimal tree-shaking:
import { effetch } from "tsuite";
// or
import effetch from "tsuite/effetch";
Include the bundle via a CDN or your local node_modules
:
<!-- From node_modules -->
<script src="/node_modules/tsuite/dist/index.global.js"></script>
<!-- Or from CDN -->
<script src="https://unpkg.com/tsuite/dist/index.global.js"></script>
Now access utilities from the global tsuite
object:
<script>
const { elFoo, elBar } = tsuite.mapElementsById("foo", "bar");
</script>
If you have a utility you think fits tsuite, feel free to open an issue or pull request.