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)
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())
Package Sidebar
Install
Weekly Downloads