-
trance::line(line, before, after, locateFile, cb)
-
Resolves and highlights code matching the file location found inside the given line.
If no location and/or code could be resolved it calls back with nothing.Parameters:
Name Type Description linestring which hopefully contains a file location
beforenumber how many lines of code to include before the matching lineno
afternumber how many lines of code to include after the matching lineno
locateFilefunction invoked with files that have no path in order to locate them, if
null, the identity function is usedcbfunction called back with an error or resolved and highlighted code or nothing
- Source:
-
trance::lines(lines, before, after, locateFile, cb)
-
Enhances multiple lines with code samples
Parameters:
Name Type Description linesArray.<string> which hopefully contain a file location
beforenumber how many lines of code to include before the matching lineno
afternumber how many lines of code to include after the matching lineno
locateFilefunction invoked with files that have no path in order to locate them, if
null, the identity function is usedcbfunction called back with
Array.<Object>each containing{ line, code }- Source:
Maintenance
Commit Frequency
Further analysis of the maintenance status of trance based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for trance is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.
