Skip to content
ECMAScript 5/6/7 compatibility command line tool
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
test
.editorconfig
.gitattribute
.gitignore
.jshintignore
.jshintrc
.travis.yml
README.md
demo.gif
package-lock.json
package.json

README.md

ECMAScript 5/6/7 compatibility tables CLI

Install

# $ npm install --global compat-cli

# Dev mode only for now
$ git clone https://github.com/kamilogorek/compat-cli.git
$ cd compat-cli
$ npm install
$ npm install -g babel
$ babel-node bin/compat-cli.js <name> [options]

Usage

$ compat-cli --help

Usage: bin/compat-cli.js <name> [options]

Options:
  --subtests    Include subtests in the report                         [boolean]
  --unstable    Include unstable browsers                              [boolean]
  --obsolete    Include obsolete browsers                              [boolean]
  --spec        ECMSScript specification version
       [choices: "es5", "es6", "es7", "esintl", "non-standard"] [default: "es6"]
  --sort-key    Sorting key   [choices: "browser", "score"] [default: "browser"]
  --sort-order  Sorting order                           [choices: "asc", "desc"]
  --update      Fetch fresh data set                                   [boolean]
  -h, --help    Show help                                              [boolean]

Examples:
  bin/compat-cli.js rest                    Verify `rest` API compatibility
  bin/compat-cli.js class -s --sort-key=    Display `class` compatibility based
  score                                     on ES7 spec, including subtests
                                            information and sorted by score

TODO

  • Add pre-release build process
  • Merge results if they’re same, but only in simple view (without subtests)
  • Allow for raw output (piping and JSON)
You can’t perform that action at this time.