tsuite
Version:
A collection of useful utility functions, All fully typed and documented
69 lines (45 loc) • 1.42 kB
Markdown
# 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

[](https://npmjs.com/package/tsuite)


[](https://tijnjh.github.io/tsuite)
## Installation
```bash
npm i tsuite
```
## Usage
### In Node.js / Modern Bundlers
Import individual utilities for optimal tree-shaking:
```typescript
import { effetch } from "tsuite";
// or
import effetch from "tsuite/effetch";
```
### In the Browser
Include the bundle via a CDN or your local `node_modules`:
```html
<!-- 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:
```html
<script>
const { elFoo, elBar } = tsuite.mapElementsById("foo", "bar");
</script>
```
## API
### docs: https://tijnjh.github.io/tsuite
## Contributing
If you have a utility you think fits tsuite, feel free to open an issue or pull
request.