0.9.1 • Published 1 year ago

@alu0101216829/espree-logging v0.9.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Functions

transpile(input_file, output_file)

Read the file with the js program, calls addLogin to add the login messages and writes the output

Kind: global function

ParamTypeDescription
input_filestringThe name of the input file
output_filestringThe name of the output file

addLogging(code) ⇒

Builds the AST and Traverses it searching for function nodes and callas addBeforeNode to transform the AST

Kind: global function
Returns: -- The transformed AST

ParamTypeDescription
codestringthe source code

addBeforeCode(node)

AST transformation

Kind: global function

ParamType
nodeAST