1.2.0 • Published 1 year ago

@alu0101391793/espree-logging v1.2.0

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

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

OptionDescription
-o, --output The file to write the logged JS code to
-h, --helpDisplay help for command
-v, --versionDisplay 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

ParamTypeDescription
codestringThe input JS code to be transformed