0.1.0 • Published 5 years ago

ctagz v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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())
0.1.0

5 years ago

0.0.6

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago