Espree Logging ==============
npm install @alu0101230948/addloggingEspree Logging
==============
A small library providing utility methods to addLogging to a code, meaning that it introduces a console.log after every function definition.
npm install @alu0101230948/addlogging --save
`` jsfunction foo(a, b) {
addLogging = require('@alu0101230948/addlogging').addLogging;
let input =
var x = 'blah';
var y = (function () {
return 3;
})();
}
foo(1, 'wut', 3);
/* Expected output
function foo(a, b) {
console.log('Entering foo(\${ a },\${ b }) at line 1');
var x = 'blah';
var y = function () {
console.log('Entering
return 3;
}();
}
foo(1, 'wut', 3);
*/
``
npm test
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.
* 1.0.0 Initial release
* 1.0.1 Patch fix: documentation mistakes
* 1.0.2 Minor bugs fixed
* 1.0.3 Minor bugs fixed
* 1.1.0 Added Regex pattern compatibility
* 1.2.0 Added possibility of indicating multiple input files
* 1.3.0 If a directory is specified with '/' at the end, it will take all files and perform addLogging to them