/js-editor-tags

Generate tags file for javascript codebase using static code analyses.

Primary LanguageJavaScript

js-editor-tags Build Status

Generate tags file for javascript codebase using static code analyses (babylon).

Is it fast?

Yes, it is fast.

Usage

The following will generate tags file in the current folder:

npm i -g js-editor-tags
git ls-files | js-editor-tags

You can also automatically keep tags file up to date. For example, using fswatch:

fswatch -0 -r . | while read -d "" file_path; do git ls-files $file_path; done | js-editor-tags -u

Another option is to use a git hook to run the script. Here's an example.

Running tests

yarn test