es-tagger

1.0.1 • Public • Published

es-tagger

Generate tags for modern Javascript using babel.

Install

npm install -g es-tagger

Useage

CLI

estagger --output tags "src/**/*.js"

Options

estags [OPTIONS] [FILES]

Options:
  --help              Show help                                        [boolean]
  --file, -f          File to output to                                 [string]
  --silent, -s        Silent parse errors             [boolean] [default: false]
  --header, -h        Whether to include the header with stdout
                                                      [boolean] [default: false]
  --sourceType, --st  Babylon parsing file source type
                      [string] [choices: "script", "module"] [default: "module"]
  --plugins, -p       Babel plugins to enable while parsing
       [array] [choices: "*", "decorators", "asyncFunctions", "asyncGenerators",
                                        "exponentiationOperator"] [default: "*"]

API

var parser = require('es-tagger');

var tags = parser(__dirname + '/**/*.js', {
  silent: true
});

tags.join('\n');

Readme

Keywords

none

Package Sidebar

Install

npm i es-tagger

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • steelsojka