0.10.2 • Published 6 years ago

detect-es v0.10.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Use cases

Prevent from shipping unexpected ES6 code to your users, and more...

What's supported?

Features

  • const
  • let
  • template literal
  • tagged template literal
  • class
  • arrow function
  • async/await
  • es module
  • dynamic import
  • destructuring
  • generator
  • for..of
  • PR to add more...

APIs

  • Object.assign
  • Map Set WeakMap WeakSet
  • Promise
  • Proxy
  • PR to add more...

Install

yarn global add detect-es

CLI

detect-es foo.js

API

const { parse }  = require('detect-es')

const stats = parse('const foo = {...bar}')
console.log(stats.has('const'))
// true
console.log(stats.has('object_rest_spread'))
// true

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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

0.10.2

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.7.0

6 years ago

0.5.0

8 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago