0.3.0 • Published 3 years ago

@alu0101240374/espree-logging-module-alu0101240374 v0.3.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Add Logging =========

A small library providing utility methods adding logs

Installation

npm install addLogging --save

Usage

let {addLogging} = require('addLogging')

let code = `console.log('html', html, 'escaped', escaped, 'unescaped', unescaped);`
let logAdded = addLogging(code);

Input:

function foo(a) {
  return a
}

foo();

Output

function foo(a) {
  console.log(`Entering foo(${ a }) at line 1`);
  return a;
}
foo();

Executable usage

For execution write:

$ ./espree-logging-module-alu0101240374-linux
Usage: logging-espree-CLI [opciones] <nombreFicheroEntrada>

espree logging module

Options:
  -V, --version            output the version number
  -o, --output <filename>  asigna un fichero donde se guardara la salida
  -p --pattern <patttern>  añadira los mensajes a las funcionas que tengan ese pattern
  -h, --help               display help for command

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
  • 0.2.0
  • 0.2.1
  • 0.2.2
  • 0.3.0
0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.1.0

3 years ago