Promise Utility Library
Small collection of functions designed to help the manipulation of the ES6 Promises with await operator.
This library is the evolution and conversion to TypeScript of till.mjs, equivalent written as plain ES6 module.
$ npm install tilly
or as development dependency:
$ npm install --save-dev tilly
$ yarn add tilly
or as development dependency:
$ yarn add --dev tilly
You can download and use the latest release directly from the GitHub page.
/// import specific methods or classes
import { all, sleep } from "tilly";
// ...
// or entire library
import * as tilly from "tilly";
// ...
<script type="module">
/// import specific methods or classes
import { all, sleep } from "./tilly/esm/index.js";
// ...
// or entire library
import * as tilly from "./tilly/esm/index.js";
// ...
</script>
/// import specific methods or classes
const { all, sleep } = require("tilly");
// ...
// or entire library
const tilly = require("tilly");
// ...
Typedoc documentation with examples can be found by clicking here.
The same examples are visible by clicking here.
This package is written in TypeScript and the build includes type definitions for use in other TypeScript projects.
The build of this package generates two versions:
master | develop |
---|---|
Generated using TypeDoc