tsuite
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

tsuite

/swiːt/ — suite

noun
a number of things forming a series or set.

A collection of useful utility functions, All fully typed and documented

GitHub last commit npm version NPM Downloads npm package minimized gzipped size docs


Installation

npm i tsuite

Usage

In Node.js / Modern Bundlers

Import individual utilities for optimal tree-shaking:

import { effetch } from "tsuite";
// or
import effetch from "tsuite/effetch";

In the Browser

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>

API

Contributing

If you have a utility you think fits tsuite, feel free to open an issue or pull request.

Package Sidebar

Install

npm i tsuite

Weekly Downloads

70

Version

0.7.2

License

MIT

Unpacked Size

28.3 kB

Total Files

36

Last publish

Collaborators

  • tijn_