An open API service indexing awesome lists of open source software.

https://github.com/othree/jsctags-oasis

A forked project base on jsctags.
https://github.com/othree/jsctags-oasis

ctags javascript

Last synced: 7 months ago
JSON representation

A forked project base on jsctags.

Awesome Lists containing this project

README

          

# jsctags-oasis

A forked project base on jsctags. Try to align the behavior of ctags as much as possible.

jsctags generator using [tern](https://github.com/marijnh/tern)

## Install

For access to the binary:

```sh
npm install -g jsctags-oasis
```

## Usage

Just execute:

```
jsctags -R .
```

And it will generate `tags` file for you.

For more options:

```sh
Usage: jsctags [options]

Options:
-a Equivalent to --append
-f Use the name specified by tagfile for the tag file. Default is "tags" (default: "tags")
-L Read from file a list of file names for which tags should be generated.
-n Equivalent to --excmd=number.
-N Equivalent to --excmd=pattern.
-o Equivalent to -f tagfile.
-p Use path as the default directory for each supplied source file.
-R Equivalent to --recurse=yes.
-u Equivalent to --sort=no.
--append Indicates whether tags generated from the specified files should be appended to those already present in the tag file or should replace them.
--exclude Add pattern to a list of excluded files and directories. (default: ["node_modules/**/*"])
--excmd Determines the type of EX command used to locate tags in the source file. (default: "number")
--json Output JSON format.
--map Controls how file names are mapped to JavaScript language. (default: ".js.jsx")
--options Read additional options from file.
--recurse Recurse into directories encountered in the list of supplied files. (default: "no")
--sort Indicates whether the tag file should be sorted on the tag name (default: "yes")
--help Output usage information.
--version Output the version number.

```

## license

MIT