Adds logging code to javascript code functions
npm install @alu0101016733/add-logging``console`
user@user:~$ npm install @alu0101016733/add-logging --save
`console`
user@user:~$ npm install -g @alu0101016733/add-logging
When installed Locally we would run it with
`console`
npm exec path_to_bin
Else we run it with add-logging.
Expects .js files to add logs to.
`console
Usage: add-logging [options]
Options:
-V, --version output the version number
-p, --pattern
-o, --output
-h, --help display help for command
`
In the code implementation the addLogging module expects the program in string form.
`javascript
const addLogging = require('@alu0101016733/add-logging');
//call function with string
//example call:
addLogging('function function1(data){}');
// Expected Output:
// function fan1(data) {
// console.log(Entering fan1(${ data }) at line 2);``
// }