node-feature-detect
Checks for features.
var detect = require('node-feature-detect')
detect.features
detect('class', 'generators')
or:
var unsupported = detect('let')
if (unsupported) {
}
Or you can automatically fail:
detect.fail('class', 'generators')
Features:
class
fat arrow
generators
let
object.assign
promise
symbol
template string
weakmap
Thanks
node-feature-detect © 2015+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com ·
GitHub @rstacruz ·
Twitter @rstacruz