Example for PL ULL
npm install @alu0101130507/addloggingA small module providing a method that adds console.log messages when entering functions.
npm install @alu0101130507/addlogging --save
``js
const addlogging = require('@alu0101130507/addlogging').loggers;
const input =
let z = (e => {
return e + 1;
})(4);
;
const output = addlogging(input);
console.log(output);
`
You can also specify the files where these programs will be, and optionally, adding a file with the output in the following way:
`js
const addlogging = require('@alu0101130507/addlogging').logFile;
const inputFileName = "exampleInput.js"
const outputFileName = "exampleOutput.js"
logFile(inputFileName, outputFileName);
`
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.
* 0.1.0 Initial release