@0ria/addlogging
v1.3.0
Published
PL Assignment npm module
Downloads
22
Readme
Espree-Logging module
A small library created for an assignment that has some methods to add a console.log() showing the name and some info about a function when entering to it in nodejs.
Instalation
npm install @0ria/addlogging --save
Usage
let espreelog = require('@0ria/addlogging');
const input = `
let result = function foo(a, b) {
let x = 'blah';
}
foo(1, 'wut', 3);
`;
const output = espreelog.addLogging(input);
console.log(`input:\n${input}\n---`);
console.log(`output:\n${output}\n---`);
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