Ctags Node module
Read all about ctags here.
npm install ctags
npm install
grunt to compile the native and CoffeeScript codegrunt test to run the specsGet all tags matching the tag specified from the tags file at the path.
path - The string path to the tags file.
tag - The string name of the tag to search for.
options - An optional options object containing the following keys:
caseInsensitive: true to include tags that match case insensitively,
(default: false)partialMatch: true to include tags that partially match the given tag
(default: false)Returns an array containing objects that have name and file keys and
optionally a pattern key if the tag file specified contains tag patterns.
ctags = require 'ctags'
tags = ctags.findTags('/Users/me/repos/node/tags', 'exists')
for tag in tags
console.log("#{tag.name} is in #{tag.file}")
Get all tags found in the path specified.
path - The string path to the tags file.
Returns an array containing objects that have name and file keys and
optionally a pattern key if the tag file specified contains tag patterns.
ctags = require 'ctags'
allTags = ctags.getTags('/Users/me/repos/node/tags')
for tag in allTags
console.log("#{tag.name} is in #{tag.file} with pattern: #{tag.pattern}")