1.1.0 • Published 3 years ago
@alu0101391793/espree-logging v1.1.0
Espree Logging
A simple tool to add logging statements to the beggining of each function in a JS file
Installation
npm install -g espree-loggingUsage
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 testFunctions
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 |