@alu0101030531/addlogging
v0.6.7
Published
add logs after a function call
Downloads
39
Readme
espree-logging
A library that adds console.logs inside a function whenever it detects one
Instalation
npm install @alu0101030531/addlogging
Usage
let espree-logging = require('@alu0101030531/addlogging');
const code = espree-logging.addLogin(`function aFunction() {
return 0;
}`);
console.log(code); // It will contain the same code plus a console.log
Release history
- 0.1.0 Initial version of the library
- 0.2.0 Added --pattern option
- 0.3.0 patterns now can be a regexp