@alu0101391793/espree-logging
v1.2.0
Published
Adds logs to javascript code
Downloads
12
Readme
Espree Logging
A simple tool to add logging statements to the beggining of each function in a JS file
Installation
npm install -g espree-logging
Usage
funlog [options] <input file>
Options
| Option | Description | | --- | --- | | -o, --output | The file to write the logged JS code to | | -h, --help | Display help for command | | -v, --version | Display version number |
Tests
npm test
Functions
addLogging(code) ⇒ String
Returns the resulting JS code with logging statements added at the beggining of each function
Kind: global function
Returns: String - The resulting JS code with logging statements added
| Param | Type | Description | | --- | --- | --- | | code | string | The input JS code to be transformed |