@alu0101216829/espree-logging

0.9.1 • Public • Published

Functions

transpile(input_file, output_file)

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

addLogging(code)

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

addBeforeCode(node)

AST transformation

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

Param Type Description
input_file string The name of the input file
output_file string The 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

Param Type Description
code string the source code

addBeforeCode(node)

AST transformation

Kind: global function

Param Type
node AST

Readme

Keywords

none

Package Sidebar

Install

npm i @alu0101216829/espree-logging

Weekly Downloads

6

Version

0.9.1

License

none

Unpacked Size

47.9 kB

Total Files

36

Last publish

Collaborators

  • alu0101216829