@alu0101240374/addlogging
v0.4.2
Published
Espree logging module
Downloads
7
Readme
Add Logging
A small library providing utility methods adding logs
Installation
npm install @alu0101240374/addlogging --save
globally:
npm install -g @alu0101240374/addlogging
Usage
let {addLogging} = require('addLogging')
let code = `console.log('html', html, 'escaped', escaped, 'unescaped', unescaped);`
let logAdded = addLogging(code);
Input:
function foo(a) {
return a
}
foo();
Output
function foo(a) {
console.log(`Entering foo(${ a }) at line 1`);
return a;
}
foo();
Executable usage
If you install the module locally on your directory, you should place yourself in it in order to execute it. For execution write:
$ npx addLogging
Usage: logging-espree-CLI [opciones] <nombreFicheroEntrada>
espree logging module
Options:
-V, --version output the version number
-o, --output <filename> asigna un fichero donde se guardara la salida
-p --pattern <patttern> añadira los mensajes a las funcionas que tengan ese pattern
-h, --help display help for command
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Tests
npm test
Release History
- 0.1.0 Initial release
- 0.2.0
- 0.2.1
- 0.2.2
- 0.3.0
- 0.4.0
- 0.4.1
- 0.4.2