0.10.2 • Published 8 years ago
detect-es v0.10.2
Use cases
Prevent from shipping unexpected ES6 code to your users, and more...
What's supported?
Features
constlettemplate literaltagged template literalclassarrow functionasync/awaites moduledynamic importdestructuringgeneratorfor..of- PR to add more...
APIs
Object.assignMapSetWeakMapWeakSetPromiseProxy- PR to add more...
Install
yarn global add detect-esCLI
detect-es foo.jsAPI
const { parse } = require('detect-es')
const stats = parse('const foo = {...bar}')
console.log(stats.has('const'))
// true
console.log(stats.has('object_rest_spread'))
// trueContributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
detect-es © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).
egoist.moe · GitHub @EGOIST · Twitter @_egoistlily