1.2.0 • Published 4 years ago

@alu0101130507/addlogging v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

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
1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago