# make-async-function

> Function that returns an arbitrary `async function`, or undefined if `async function` syntax is unsupported.

Latest version **1.0.0** (published 2017-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install make-async-function
pnpm add make-async-function
yarn add make-async-function
bun add make-async-function
```

## Health

**Score 33/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-09-05 |
| First published | 2017-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/make-async-function) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jordan Harband |
| Maintainers | ljharb |
| Keywords | async function, async, function, ES2017, ES8, ES7, ES6, promise, await |

## Links

- npm: https://www.npmjs.com/package/make-async-function
- Repository: https://github.com/ljharb/make-async-function
- Homepage: https://github.com/ljharb/make-async-function#readme
- Issues: https://github.com/ljharb/make-async-function/issues
- npm.io page: https://npm.io/package/make-async-function

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-09-05

## README

# make-async-function <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

[![Build Status][travis-svg]][travis-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

Function that returns an arbitrary `async function`, or undefined if `async function` syntax is unsupported.

## Example
```js
var maybeAsyncFunction = require('make-async-function')();
if (maybeAsyncFunction) {
	assert(typeof maybeAsyncFunction === 'function');
} else {
	assert(typeof maybeAsyncFunction === 'undefined');
}

var asyncFunctions = require('make-async-function').list();
assert(asyncFunctions.every(function (fn) { return typeof fn === 'function'; }));
```

## Tests
Simply clone the repo, `npm install`, and run `npm test`

[package-url]: https://npmjs.org/package/make-async-function
[npm-version-svg]: http://versionbadg.es/ljharb/make-async-function.svg
[travis-svg]: https://travis-ci.org/ljharb/make-async-function.svg
[travis-url]: https://travis-ci.org/ljharb/make-async-function
[deps-svg]: https://david-dm.org/ljharb/make-async-function.svg
[deps-url]: https://david-dm.org/ljharb/make-async-function
[dev-deps-svg]: https://david-dm.org/ljharb/make-async-function/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/make-async-function#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/make-async-function.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/make-async-function.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/make-async-function.svg
[downloads-url]: http://npm-stat.com/charts.html?package=make-async-function

---
_Source: https://npm.io/package/make-async-function · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
