UNPKG

has-async-hooks

Version:

check if the current node version has async_hooks.

31 lines (21 loc) 656 B
# has-async-hooks check if the current node version has async_hooks. [![npm][npm-image]][npm-url] [![standard][standard-image]][standard-url] [npm-image]: https://img.shields.io/npm/v/has-async-hooks.svg?style=flat-square [npm-url]: https://www.npmjs.com/package/has-async-hooks [standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square [standard-url]: http://npm.im/standard ## Install ``` npm install has-async-hooks ``` ## Usage ```js var hasAsyncHooks = require('has-async-hooks') hasAsyncHooks() // → true if async_hooks is available // false otherwise ``` ## License [Apache-2.0](LICENSE.md)