Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-supported

Andifeind15MIT1.0.0

Checks if a ECMAScript feature is supported or not. Checks async, generator and more...

is, supported, ecma, isasync, async, async-supported, is-async-supported

readme

isSupported

Checks if new ECMAScript features are supported or not.

const is = require('is-supported')

if (is.asyncSupported) {
  console.log('Async is supported')
}

if (is.generatorSupported) {
  console.log('Generators are supported')
}