ctagz
v0.1.0
Published
JS Native ctags parser
Downloads
10
Readme
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())