https://github.com/artemave/js-editor-tags
Generate tags file for javascript codebase using static code analyses.
https://github.com/artemave/js-editor-tags
babylon ctags javascript
Last synced: 8 months ago
JSON representation
Generate tags file for javascript codebase using static code analyses.
- Host: GitHub
- URL: https://github.com/artemave/js-editor-tags
- Owner: artemave
- Created: 2018-04-25T07:39:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T11:39:25.000Z (over 2 years ago)
- Last Synced: 2025-02-08T13:35:57.421Z (8 months ago)
- Topics: babylon, ctags, javascript
- Language: JavaScript
- Homepage:
- Size: 207 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
js-editor-tags [](https://travis-ci.org/artemave/js-editor-tags)
-------Generate tags file for javascript codebase using static code analyses.
## Is it fast?
Yes, it is fast.
## Usage
```bash
npm install -g js-editor-tags# generate `tags` file for all _not git ignored_, _existing_, js/mjs/jsx files in the current folder and subfolders
js-editor-tags# update existing `tags` file instead of regenerating it
js-editor-tags -u# generate `tags` file and keep it up to date as the files change
js-editor-tags -w# if you keep compiled js in git, you might want to exlude it
js-editor-tags --ignore "dist" --ignore "build"# ultimately, you can just pipe in a list of files to tag
git ls-files | js-editor-tags# and watch it your way
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](https://tbaggery.com/2011/08/08/effortless-ctags-with-git.html).
## Running tests
```bash
yarn test
```