mirror-rhinstaller-node-cache/is-async-function
2026-07-29 10:38:58 +00:00
..
test 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
.eslintrc 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
.nycrc 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
CHANGELOG.md 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
index.d.ts 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
index.js 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
LICENSE 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
package.json 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
README.md 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +00:00
tsconfig.json 5e60d1b1ad718fed7a4313c8f92ddcb2aec2b7d4bdf17d2179db7959c05418c0 package.json 2026-07-29 10:38:58 +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