UNPKG

fishbird

Version:

Fishbird is a simple, lightweight, and fast Promise utility library

33 lines (25 loc) 1.56 kB
# Fishbird [![NPM version](https://badgen.net/npm/v/fishbird)](https://www.npmjs.com/package/fishbird) [![Tests](https://github.com/isuvorov/fishbird/actions/workflows/release.yml/badge.svg)](https://github.com/isuvorov/fishbird/actions/workflows/npm-publish.yml) [![Install size](https://packagephobia.now.sh/badge?p=fishbird)](https://packagephobia.now.sh/result?p=fishbird) [![Bundle size](https://img.shields.io/bundlephobia/minzip/fishbird.svg)](https://bundlephobia.com/result?p=fishbird) [![License](https://badgen.net//github/license/isuvorov/fishbird)](https://github.com/isuvorov/fishbird/blob/master/LICENSE) [![Ask me in Telegram](https://img.shields.io/badge/Ask%20me%20in-Telegram-brightblue.svg)](https://t.me/isuvorov) <!-- [![NPM Package size](https://badgen.net/bundlephobia/minzip/fishbird)](https://bundlephobia.com/result?p=fishbird) --> <img src="https://isuvorov.github.io/fishbird/logo.png" align="right" width="120" height="120"> Fishbird is a simple, lightweight, and fast *Promise* utility library. - **Small**. Less 1Kb (minified and gzipped). No dependencies. - **Fast**. Its 2 times faster than Bluebird by benchmarkes. - **ES modules** and **tree-shaking** support. - **TypeScript** friendly. - **Portable** Supports modern browsers, IE with Babel, Node.js and React Native. - **Compatible** with Bluebird API. ```ts import { map } from 'fishbird'; const res = map([1 ,2, 3], async (id) => { const res = await fetch(id); return res.json(); }); ``` ## Docs Read full docs **[here](https://github.com/isuvorov/fishbird)**.