{"_id":"is-async-fn","_rev":"161450","name":"is-async-fn","description":"Check if something is an ES7 async function","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"jprichardson","email":""}],"time":{"modified":"2021-06-03T11:40:42.000Z","created":"2015-11-29T08:42:25.526Z","1.1.0":"2015-11-29T17:01:31.093Z","1.0.1":"2015-11-29T16:08:07.991Z","1.0.0":"2015-11-29T08:42:25.526Z"},"users":{},"author":{"name":"JP Richardson"},"repository":{"type":"git","url":"git+https://github.com/jprichardson/is-async-fn.git"},"versions":{"1.1.0":{"name":"is-async-fn","version":"1.1.0","description":"Check if something is an ES7 async function","main":"index.js","scripts":{"test":"standard && find ./tests -name *.test.js -exec node --require ./tests/_babel.js {} \\; | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/jprichardson/is-async-fn.git"},"keywords":["function","fn","func","async","await","es7","is","check"],"author":{"name":"JP Richardson"},"license":"MIT","bugs":{"url":"https://github.com/jprichardson/is-async-fn/issues"},"homepage":"https://github.com/jprichardson/is-async-fn#readme","devDependencies":{"babel-core":"^6.2.1","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.1.18","babel-preset-stage-3":"^6.1.18","babel-regenerator-runtime":"^6.2.0","standard":"^5.4.1","tap-spec":"^4.1.1","tape":"^4.2.2","tape-promise":"^1.0.1"},"standard":{"parser":"babel-eslint"},"gitHead":"f261d8d88c3372ce9f1fb8bd75cad663e6b3d66d","_id":"is-async-fn@1.1.0","_shasum":"a1a15b11d4a1155cc23b11e91b301b45a3caad16","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""}],"dist":{"shasum":"a1a15b11d4a1155cc23b11e91b301b45a3caad16","size":2172,"noattachment":false,"key":"/is-async-fn/-/is-async-fn-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-async-fn/download/is-async-fn-1.1.0.tgz"},"directories":{},"publish_time":1448816491093,"_cnpm_publish_time":1448816491093,"_hasShrinkwrap":false},"1.0.1":{"name":"is-async-fn","version":"1.0.1","description":"Check if something is an ES7 async function","main":"index.js","scripts":{"test":"standard && find ./tests -name *.test.js -exec node --require ./tests/_babel.js {} \\; | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/jprichardson/is-async-fn.git"},"keywords":["function","fn","func","async","await","es7","is","check"],"author":{"name":"JP Richardson"},"license":"MIT","bugs":{"url":"https://github.com/jprichardson/is-async-fn/issues"},"homepage":"https://github.com/jprichardson/is-async-fn#readme","devDependencies":{"babel-core":"^6.2.1","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.1.18","babel-preset-stage-3":"^6.1.18","babel-regenerator-runtime":"^6.2.0","standard":"^5.4.1","tap-spec":"^4.1.1","tape":"^4.2.2","tape-promise":"^1.0.1"},"standard":{"parser":"babel-eslint"},"gitHead":"03514037252858aa883512b4bf8a154088d39a74","_id":"is-async-fn@1.0.1","_shasum":"e921055c5a8e83aea0eb78b2952ac79d84eff3fa","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""}],"dist":{"shasum":"e921055c5a8e83aea0eb78b2952ac79d84eff3fa","size":1994,"noattachment":false,"key":"/is-async-fn/-/is-async-fn-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-async-fn/download/is-async-fn-1.0.1.tgz"},"directories":{},"publish_time":1448813287991,"_cnpm_publish_time":1448813287991,"_hasShrinkwrap":false},"1.0.0":{"name":"is-async-fn","version":"1.0.0","description":"Check if something is an ES7 async function","main":"index.js","scripts":{"test":"standard && find ./tests -name *.test.js -exec node --require ./tests/_babel.js {} \\; | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/jprichardson/is-async-fn.git"},"keywords":["function","fn","func","async","await","es7","is","check"],"author":{"name":"JP Richardson"},"license":"MIT","bugs":{"url":"https://github.com/jprichardson/is-async-fn/issues"},"homepage":"https://github.com/jprichardson/is-async-fn#readme","devDependencies":{"babel-core":"^6.2.1","babel-eslint":"^4.1.6","babel-preset-es2015":"^6.1.18","babel-preset-stage-3":"^6.1.18","babel-regenerator-runtime":"^6.2.0","standard":"^5.4.1","tap-spec":"^4.1.1","tape":"^4.2.2","tape-promise":"^1.0.1"},"standard":{"parser":"babel-eslint"},"gitHead":"d66bf4703e054f10313e97ba7deaf6d74b59b08f","_id":"is-async-fn@1.0.0","_shasum":"0fce9a74a498a8437b8cd13569b158d1a94a9b14","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jprichardson","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jprichardson","email":""}],"dist":{"shasum":"0fce9a74a498a8437b8cd13569b158d1a94a9b14","size":1966,"noattachment":false,"key":"/is-async-fn/-/is-async-fn-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-async-fn/download/is-async-fn-1.0.0.tgz"},"directories":{},"publish_time":1448786545526,"_cnpm_publish_time":1448786545526,"_hasShrinkwrap":false}},"readme":"is-async-fn\n===========\n\n[![build status](https://api.travis-ci.org/jprichardson/is-async-fn.svg)](http://travis-ci.org/jprichardson/is-async-fn)\n\nCheck if something is an [ES7/ES2016 async/await](http://pouchdb.com/2015/03/05/taming-the-async-beast-with-es7.html) function.\ni.e. It checks if the function was defined with the `async` keyword. It **does NOT** attempt to detect if the function is a traditional asynchronous function, one with a callback.\n\nCompatible with code transformed with Babel 5 and Babel 6.\n\n\nInstall\n-------\n\n    npm i --save is-async-fn\n\n\nUsage\n-----\n\n### isAsyncFn\n\n**Signature:** `isAsyncFn(function)`\n\n**Parameters:**\n- `function`: The function to check.\n\n**Returns:** Type `boolean`. Returns `true` if the `function` was defined with the\n`async` keyword.\n\n**Example:**\n\n```js\nimport isAsyncFn from 'is-async-fn'\n\nconsole.log(isAsyncFn(function () {})) // => false\nconsole.log(isAsyncFn(async function () {})) // => true\n```\n\nLicense\n-------\n\nMIT\n\nCopyright (c) [JP Richardson](https://github.com/jprichardson)\n","_attachments":{},"homepage":"https://github.com/jprichardson/is-async-fn#readme","bugs":{"url":"https://github.com/jprichardson/is-async-fn/issues"},"license":"MIT"}