Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
jsctags generator using tern
JavaScript Shell
branch: master
Failed to load latest commit information.
bin tabs to spaces
examples infinite-expansion example fixed by marijnh/tern#268
src Forgot to add ctags.js
test 0.1.0
.gitignore 0.1.0
.tern-project initial commit
package.json tabs to spaces
readme.md Update readme.md

readme.md

jsctags

jsctags generator using tern

install

For access to the binary:

npm install -g git://github.com/ramitos/jsctags.git

Otherwise, add to your project's package.json under dependencies or dev-dependencies:

"jsctags": "git://github.com/ramitos/jsctags.git"

usage

$ jsctags [--dir=/path/to] /path/to/file.js [-f]
$ cat /path/to/file.js | jsctags [--dir=/path/to] [--file=/path/to/file.js] [-f]

By default, jsctags will output a JSON file. Use the -f flag to output an exuberant ctags-compatible file.

var jsctags = require('jsctags'),
    fs = require('fs')

var file = '/path/to/file.js'
var dir = '/path/to/'
var content = fs.readFileSync(file, 'utf8')

jsctags(file, dir, content, function (e, tags) {
  console.log(tags)
})

examples

license

MIT

Something went wrong with that request. Please try again.