source: imaps-frontend/node_modules/is-async-function/README.md@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[d565449]1# is-async-function <sup>[![Version Badge][2]][1]</sup>
2
3[![github actions][actions-image]][actions-url]
4[![coverage][codecov-image]][codecov-url]
5[![dependency status][5]][6]
6[![dev dependency status][7]][8]
7[![License][license-image]][license-url]
8[![Downloads][downloads-image]][downloads-url]
9
10[![npm badge][11]][1]
11
12Is this a native `async function`?
13
14## Example
15
16```js
17var isAsyncFunction = require('is-async-function');
18assert(!isAsyncFunction(function () {}));
19assert(!isAsyncFunction(null));
20assert(!isAsyncFunction(function* () { yield 42; return Infinity; }));
21assert(isAsyncFunction(async function () {}));
22```
23
24## Tests
25Simply clone the repo, `npm install`, and run `npm test`
26
27[1]: https://npmjs.org/package/is-async-function
28[2]: https://versionbadg.es/inspect-js/is-async-function.svg
29[5]: https://david-dm.org/inspect-js/is-async-function.svg
30[6]: https://david-dm.org/inspect-js/is-async-function
31[7]: https://david-dm.org/inspect-js/is-async-function/dev-status.svg
32[8]: https://david-dm.org/inspect-js/is-async-function#info=devDependencies
33[11]: https://nodei.co/npm/is-async-function.png?downloads=true&stars=true
34[license-image]: https://img.shields.io/npm/l/is-async-function.svg
35[license-url]: LICENSE
36[downloads-image]: https://img.shields.io/npm/dm/is-async-function.svg
37[downloads-url]: https://npm-stat.com/charts.html?package=is-async-function
38[codecov-image]: https://codecov.io/gh/inspect-js/is-async-function/branch/main/graphs/badge.svg
39[codecov-url]: https://app.codecov.io/gh/inspect-js/is-async-function/
40[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-async-function
41[actions-url]: https://github.com/inspect-js/is-async-function/actions
Note: See TracBrowser for help on using the repository browser.