api documentation for istanbul-lite (2020.11.12)

this zero-dependency package will provide browser-compatible version of istanbul coverage-tool (v0.4.5), with working web-demo

table of contents

  1. module istanbul-lite
    1. function istanbul-lite.Instrumenter (options)
    2. function istanbul-lite.assertJsonEqual (aa, bb)
    3. function istanbul-lite.assertOrThrow (passed, msg)
    4. function istanbul-lite.cliRun ({ rgxComment })
    5. function istanbul-lite.coalesce (...argList)
    6. function istanbul-lite.coverageMerge (coverage1 = {}, coverage2 = {})
    7. function istanbul-lite.coverageReportCreate ({ coverage, coverageInclude })
    8. function istanbul-lite.fsReadFileOrDefaultSync (pathname, type, dflt)
    9. function istanbul-lite.fsWriteFileWithMkdirpSync (pathname, data)
    10. function istanbul-lite.identity (val)
    11. function istanbul-lite.instrumentInPackage (code, file)
    12. function istanbul-lite.instrumentSync (code, file)
    13. function istanbul-lite.noop ()
    14. function istanbul-lite.objectAssignDefault (tgt = {}, src = {}, depth = 0)
    15. function istanbul-lite.objectDeepCopyWithKeysSorted (obj)
    16. function istanbul-lite.onErrorThrow (err)
    17. function istanbul-lite.templateRender (template, dict, opt = {}, ii = 0)
    18. number istanbul-lite.timeExit
    19. object istanbul-lite.Instrumenter.prototype
    20. object istanbul-lite.cliDict
    21. object istanbul-lite.istanbul
    22. string istanbul-lite.__dirname
    23. string istanbul-lite.templateCoverageBadgeSvg
    24. string istanbul-lite.templateCoverageReport
  2. module istanbul-lite.Instrumenter
    1. function istanbul-lite.Instrumenter (options)
  3. module istanbul-lite.Instrumenter.prototype
    1. function istanbul-lite.Instrumenter.prototype.arrowBlockConverter (node)
    2. function istanbul-lite.Instrumenter.prototype.branchIncrementExprAst (varName, branchIndex, down)
    3. function istanbul-lite.Instrumenter.prototype.branchLocationFor (name, index)
    4. function istanbul-lite.Instrumenter.prototype.branchName (type, startLine, pathLocations)
    5. function istanbul-lite.Instrumenter.prototype.conditionalBranchInjector (node, walker)
    6. function istanbul-lite.Instrumenter.prototype.convertToBlock (node)
    7. function istanbul-lite.Instrumenter.prototype.coverExport (node, walker)
    8. function istanbul-lite.Instrumenter.prototype.coverFunction (node, walker)
    9. function istanbul-lite.Instrumenter.prototype.coverMetaProperty (node)
    10. function istanbul-lite.Instrumenter.prototype.coverStatement (node, walker)
    11. function istanbul-lite.Instrumenter.prototype.endIgnore ()
    12. function istanbul-lite.Instrumenter.prototype.extractCurrentHint (node)
    13. function istanbul-lite.Instrumenter.prototype.filterHints (comments)
    14. function istanbul-lite.Instrumenter.prototype.findLeaves (node, accumulator, parent, property)
    15. function istanbul-lite.Instrumenter.prototype.fixColumnPositions (coverState)
    16. function istanbul-lite.Instrumenter.prototype.functionName (node, line, location)
    17. function istanbul-lite.Instrumenter.prototype.getPreamble (sourceCode, emitUseStrict)
    18. function istanbul-lite.Instrumenter.prototype.ifBlockConverter (node)
    19. function istanbul-lite.Instrumenter.prototype.ifBranchInjector (node, walker)
    20. function istanbul-lite.Instrumenter.prototype.instrument (code, filename, callback)
    21. function istanbul-lite.Instrumenter.prototype.instrumentASTSync (program, filename, originalCode)
    22. function istanbul-lite.Instrumenter.prototype.instrumentSync (code, filename)
    23. function istanbul-lite.Instrumenter.prototype.isUseStrictExpression (node)
    24. function istanbul-lite.Instrumenter.prototype.lastFileCoverage ()
    25. function istanbul-lite.Instrumenter.prototype.lastSourceMap ()
    26. function istanbul-lite.Instrumenter.prototype.locationsForNodes (nodes)
    27. function istanbul-lite.Instrumenter.prototype.logicalExpressionBranchInjector (node, walker)
    28. function istanbul-lite.Instrumenter.prototype.loopBlockConverter (node)
    29. function istanbul-lite.Instrumenter.prototype.maybeAddSkip (branchLocation)
    30. function istanbul-lite.Instrumenter.prototype.maybeAddType (node)
    31. function istanbul-lite.Instrumenter.prototype.maybeSkipNode (node, type)
    32. function istanbul-lite.Instrumenter.prototype.paranoidHandlerCheck (node)
    33. function istanbul-lite.Instrumenter.prototype.skipInit (node)
    34. function istanbul-lite.Instrumenter.prototype.skipLeft (node)
    35. function istanbul-lite.Instrumenter.prototype.splice (statements, node, walker)
    36. function istanbul-lite.Instrumenter.prototype.startIgnore ()
    37. function istanbul-lite.Instrumenter.prototype.statementName (location, initValue)
    38. function istanbul-lite.Instrumenter.prototype.switchBranchInjector (node, walker)
    39. function istanbul-lite.Instrumenter.prototype.switchCaseInjector (node)
    40. function istanbul-lite.Instrumenter.prototype.withBlockConverter (node)
  4. module istanbul-lite.cliDict
    1. function istanbul-lite.cliDict.cover ()
    2. function istanbul-lite.cliDict.instrument ()
    3. function istanbul-lite.cliDict.report ()
    4. function istanbul-lite.cliDict.test ()

module istanbul-lite

function istanbul-lite.Instrumenter (options)

function istanbul-lite.assertJsonEqual (aa, bb)

function istanbul-lite.assertOrThrow (passed, msg)

function istanbul-lite.cliRun ({ rgxComment })

function istanbul-lite.coalesce (...argList)

function istanbul-lite.coverageMerge (coverage1 = {}, coverage2 = {})

function istanbul-lite.coverageReportCreate ({ coverage, coverageInclude })

function istanbul-lite.fsReadFileOrDefaultSync (pathname, type, dflt)

function istanbul-lite.fsWriteFileWithMkdirpSync (pathname, data)

function istanbul-lite.identity (val)

function istanbul-lite.instrumentInPackage (code, file)

function istanbul-lite.instrumentSync (code, file)

function istanbul-lite.noop ()

function istanbul-lite.objectAssignDefault (tgt = {}, src = {}, depth = 0)

function istanbul-lite.objectDeepCopyWithKeysSorted (obj)

function istanbul-lite.onErrorThrow (err)

function istanbul-lite.templateRender (template, dict, opt = {}, ii = 0)

module istanbul-lite.Instrumenter

function istanbul-lite.Instrumenter (options)

module istanbul-lite.Instrumenter.prototype

function istanbul-lite.Instrumenter.prototype.arrowBlockConverter (node)

function istanbul-lite.Instrumenter.prototype.branchIncrementExprAst (varName, branchIndex, down)

function istanbul-lite.Instrumenter.prototype.branchLocationFor (name, index)

function istanbul-lite.Instrumenter.prototype.branchName (type, startLine, pathLocations)

function istanbul-lite.Instrumenter.prototype.conditionalBranchInjector (node, walker)

function istanbul-lite.Instrumenter.prototype.convertToBlock (node)

function istanbul-lite.Instrumenter.prototype.coverExport (node, walker)

function istanbul-lite.Instrumenter.prototype.coverFunction (node, walker)

function istanbul-lite.Instrumenter.prototype.coverMetaProperty (node)

function istanbul-lite.Instrumenter.prototype.coverStatement (node, walker)

function istanbul-lite.Instrumenter.prototype.endIgnore ()

function istanbul-lite.Instrumenter.prototype.extractCurrentHint (node)

function istanbul-lite.Instrumenter.prototype.filterHints (comments)

function istanbul-lite.Instrumenter.prototype.findLeaves (node, accumulator, parent, property)

function istanbul-lite.Instrumenter.prototype.fixColumnPositions (coverState)

function istanbul-lite.Instrumenter.prototype.functionName (node, line, location)

function istanbul-lite.Instrumenter.prototype.getPreamble (sourceCode, emitUseStrict)

function istanbul-lite.Instrumenter.prototype.ifBlockConverter (node)

function istanbul-lite.Instrumenter.prototype.ifBranchInjector (node, walker)

function istanbul-lite.Instrumenter.prototype.instrument (code, filename, callback)

function istanbul-lite.Instrumenter.prototype.instrumentASTSync (program, filename, originalCode)

function istanbul-lite.Instrumenter.prototype.instrumentSync (code, filename)

function istanbul-lite.Instrumenter.prototype.isUseStrictExpression (node)

function istanbul-lite.Instrumenter.prototype.lastFileCoverage ()

function istanbul-lite.Instrumenter.prototype.lastSourceMap ()

function istanbul-lite.Instrumenter.prototype.locationsForNodes (nodes)

function istanbul-lite.Instrumenter.prototype.logicalExpressionBranchInjector (node, walker)

function istanbul-lite.Instrumenter.prototype.loopBlockConverter (node)

function istanbul-lite.Instrumenter.prototype.maybeAddSkip (branchLocation)

function istanbul-lite.Instrumenter.prototype.maybeAddType (node)

function istanbul-lite.Instrumenter.prototype.maybeSkipNode (node, type)

function istanbul-lite.Instrumenter.prototype.paranoidHandlerCheck (node)

function istanbul-lite.Instrumenter.prototype.skipInit (node)

function istanbul-lite.Instrumenter.prototype.skipLeft (node)

function istanbul-lite.Instrumenter.prototype.splice (statements, node, walker)

function istanbul-lite.Instrumenter.prototype.startIgnore ()

function istanbul-lite.Instrumenter.prototype.statementName (location, initValue)

function istanbul-lite.Instrumenter.prototype.switchBranchInjector (node, walker)

function istanbul-lite.Instrumenter.prototype.switchCaseInjector (node)

function istanbul-lite.Instrumenter.prototype.withBlockConverter (node)

module istanbul-lite.cliDict

function istanbul-lite.cliDict.cover ()

function istanbul-lite.cliDict.instrument ()

function istanbul-lite.cliDict.report ()

function istanbul-lite.cliDict.test ()

[ this document was created with utility2 ]