@alu0101130507/addlogging
v1.2.0
Published
Example for PL ULL
Downloads
25
Readme
Add logging module.
A small module providing a method that adds console.log
messages when entering functions.
Installation.
npm install @alu0101130507/addlogging --save
Usage.
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:
const addlogging = require('@alu0101130507/addlogging').logFile;
const inputFileName = "exampleInput.js"
const outputFileName = "exampleOutput.js"
logFile(inputFileName, outputFileName);
Tests
npm test
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.
Release History
- 0.1.0 Initial release