{"name":"is-async-function","version":"2.1.1","description":"Determine if a function is a native async function.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc npm run test:all","test:all":"npm run test:index && npm run test:uglified","test:index":"node test","test:uglified":"node test/uglified","posttest":"npx npm@\">= 10.2\" audit --production","lint":"eslint --ext=js,mjs .","postlint":"tsc && attw -P","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git://github.com/inspect-js/is-async-function.git"},"keywords":["async","async function","es6","es2015","yield","function","function*"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/is-async-function/issues"},"dependencies":{"async-function":"^1.0.0","call-bound":"^1.0.3","get-proto":"^1.0.1","has-tostringtag":"^1.0.2","safe-regex-test":"^1.1.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.3","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.3","@types/for-each":"^0.3.3","@types/make-async-function":"^1.0.2","@types/make-generator-function":"^2.0.3","@types/tape":"^5.8.1","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","for-each":"^0.3.3","in-publish":"^2.0.1","make-async-function":"^1.0.0","make-generator-function":"^2.0.0","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next","uglify-register":"^1.0.1"},"testling":{"files":"test/index.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"is-async-function@2.1.1","gitHead":"287a194ca6f5d484ae3c29819c4b0ec876fe0eca","types":"./index.d.ts","homepage":"https://github.com/inspect-js/is-async-function#readme","_nodeVersion":"23.6.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==","shasum":"3e69018c8e04e73b738793d020bfe884b9fd3523","tarball":"http://registry-npm.ywwl.com/is-async-function/download/is-async-function-2.1.1.tgz","fileCount":11,"unpackedSize":23312,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDndeo5/uubahLrAQdapY8Hze0vcZcZY6Q8ZNjRSDOXlgIhAP30tOHEeR+ctIZI1oSzCt9mAA2aY+A5IhgdSPKUEFVS"}],"size":8157,"noattachment":false,"key":"/is-async-function/-/is-async-function-2.1.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"tunnckocore","email":"equator-owl-studio@duck.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-async-function_2.1.1_1737613713191_0.4281893617424568"},"_hasShrinkwrap":false,"readme":"# is-async-function <sup>[![Version Badge][2]][1]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\nIs this a native `async function`?\n\n## Example\n\n```js\nvar isAsyncFunction = require('is-async-function');\nassert(!isAsyncFunction(function () {}));\nassert(!isAsyncFunction(null));\nassert(!isAsyncFunction(function* () { yield 42; return Infinity; }));\nassert(isAsyncFunction(async function () {}));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/is-async-function\n[2]: https://versionbadg.es/inspect-js/is-async-function.svg\n[5]: https://david-dm.org/inspect-js/is-async-function.svg\n[6]: https://david-dm.org/inspect-js/is-async-function\n[7]: https://david-dm.org/inspect-js/is-async-function/dev-status.svg\n[8]: https://david-dm.org/inspect-js/is-async-function#info=devDependencies\n[11]: https://nodei.co/npm/is-async-function.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/is-async-function.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-async-function.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-async-function\n[codecov-image]: https://codecov.io/gh/inspect-js/is-async-function/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-async-function/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-async-function\n[actions-url]: https://github.com/inspect-js/is-async-function/actions\n","publish_time":1737613713366,"_cnpm_publish_time":1737613713366,"dist-tags":{"latest":"2.1.1"}}