Skip to content

bayram00/is-async-supported

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-async-supported

Check if async/await is available

Installation

npm install is-async-supported

Usage

const isAsyncSupported = require('is-async-supported')

if(!isAsyncSupported()) {
  // Load runtime transform
}

Background

This package gives you the ability to load for example async-to-gen only when your Node.js environment doesn't support async/await.

At the moment this is not suitable for checking in browsers since it depends on the VM module provided by Node.js

About

Check if async/await is available natively

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%