-
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 line
string which hopefully contains a file location
before
number how many lines of code to include before the matching lineno
after
number how many lines of code to include after the matching lineno
locateFile
function invoked with files that have no path in order to locate them, if
null
, the identity function is usedcb
function 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 lines
Array.<string> which hopefully contain a file location
before
number how many lines of code to include before the matching lineno
after
number how many lines of code to include after the matching lineno
locateFile
function invoked with files that have no path in order to locate them, if
null
, the identity function is usedcb
function 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.