{"name":"is-async-function","version":"2.1.0","keywords":["async","async function","es6","es2015","yield","function","function*"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"is-async-function@2.1.0","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"tunnckocore","email":"equator-owl-studio@duck.com"}],"homepage":"https://github.com/inspect-js/is-async-function#readme","bugs":{"url":"https://github.com/inspect-js/is-async-function/issues"},"dist":{"shasum":"1d1080612c493608e93168fc4458c245074c06a6","tarball":"http://registry-npm.ywwl.com/is-async-function/download/is-async-function-2.1.0.tgz","fileCount":11,"integrity":"sha512-GExz9MtyhlZyXYLxzlJRj5WUCE661zhDa1Yna52CN57AJsymh+DvXXjyveSioqSRdxvUrdKdvqB1b5cVKsNpWQ==","signatures":[{"sig":"MEUCIB7nx/2c+8zuk8tFabqylUzUaxGrl2mYsr0NTr1HqOdgAiEAywXLGDFvZJAUuKjW071gqvLU8RuXlVdcUEUt5bxKFWk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22695,"size":8004,"noattachment":false,"key":"/is-async-function/-/is-async-function-2.1.0.tgz"},"main":"index.js","types":"./index.d.ts","engines":{"node":">= 0.4"},"funding":{"url":"https://github.com/sponsors/ljharb"},"gitHead":"3bfc99cc552f2931a4e6687a714920211d597071","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"tsc && attw -P","posttest":"npx npm@\">= 10.2\" audit --production","test:all":"npm run test:index && npm run test:uglified","prepublish":"not-in-publish || npm run prepublishOnly","test:index":"node test","tests-only":"nyc npm run test:all","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","test:uglified":"node test/uglified","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"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"]},"repository":{"url":"git://github.com/inspect-js/is-async-function.git","type":"git"},"_npmVersion":"10.9.2","description":"Determine if a function is a native async function.","directories":{},"_nodeVersion":"23.5.0","dependencies":{"get-proto":"^1.0.1","call-bound":"^1.0.3","has-tostringtag":"^1.0.2","safe-regex-test":"^1.1.0"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"nyc":"^10.3.2","tape":"^5.9.0","eslint":"=8.8.0","encoding":"^0.1.13","for-each":"^0.3.3","npmignore":"^0.3.1","in-publish":"^2.0.1","typescript":"next","@types/tape":"^5.8.0","auto-changelog":"^2.5.0","@types/for-each":"^0.3.3","uglify-register":"^1.0.1","@ljharb/tsconfig":"^0.2.3","make-async-function":"^1.0.0","safe-publish-latest":"^2.0.0","@arethetypeswrong/cli":"^0.17.2","@ljharb/eslint-config":"^21.1.1","make-generator-function":"^2.0.0","@types/make-async-function":"^1.0.2","@types/make-generator-function":"^2.0.3"},"_npmOperationalInternal":{"tmp":"tmp/is-async-function_2.1.0_1735858048232_0.41266671797900445","host":"s3://npm-registry-packages-npm-production"},"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":1735858048384,"_cnpm_publish_time":1735858048384,"dist-tags":{"latest":"2.1.1"}}