mirror-rhinstaller-node-cache/is-async-function
2026-10-07 10:34:07 +00:00
..
test a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
.eslintrc a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
.nycrc a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
CHANGELOG.md a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
index.d.ts a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
index.js a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
LICENSE a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
package.json a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
README.md a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00
tsconfig.json a849e6d8b651bb6fdbd1e21acf1d96c0de79c64b1b3684e3b75151221afc6f4e package.json 2026-10-07 10:34:07 +00:00

is-async-function Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this a native async function?

Example

var isAsyncFunction = require('is-async-function');
assert(!isAsyncFunction(function () {}));
assert(!isAsyncFunction(null));
assert(!isAsyncFunction(function* () { yield 42; return Infinity; }));
assert(isAsyncFunction(async function () {}));

Tests

Simply clone the repo, npm install, and run npm test