ctagz

0.1.0 • Public • Published

ctagz

JS Native ctags parser, based on the reference implementation by Darren Hiebert (public domain).

Usage

const ctagz = require('ctagz')
 
ctagz.findCTagsBSearch('.', 'tag_name').then(console.log)
// ctagz.findCTagsBSearch('.', 'tag_name', 'my-custom-tags-file-name').then(console.log)
const ctagz = require('ctagz')
 
let ctags
ctagz.findCTagsFile('.')
.then(tags => {
    if (tags) {
        ctags = tags
        return tags.init()
        .then(tags => tags.findBinary('tag_name'))
    }
    return []
})
.then(console.log)
.finally(() => ctags.destroy())

OR

const ctagz = require('ctagz')
 
const ctags = ctagz.CTags('/path/to/ctags/file')
ctags.init()
.then(tags => tags.findBinary('tag_name'))
.then(console.log)
.finally(() => ctags.destroy())

Readme

Keywords

Package Sidebar

Install

npm i ctagz

Weekly Downloads

8

Version

0.1.0

License

MIT

Unpacked Size

21.2 kB

Total Files

5

Last publish

Collaborators

  • jtanx