@alu0101238944/addlogging
v0.2.1
Published
Example for PL ULL
Downloads
15
Readme
Práctica: Espree-logging. Fases de un compilador
José Daniel Escánez Expósito - PE101
Procesadores de Lenguajes - Ingeniería Informática ULL
Para la realización de esta práctica se han seguido las instrucciones de este enunciado y de la clase grabada del profesor.
addLogging
A function to insert console.logs at the beginning of arrow functions, function expression, and function declaration.
Installation
$ npm install @alu0101238944/addlogging
Usage
const addLogging = require('@alu0101238944/addlogging');
console.log(addLogging('(x) => { x + 1; }'));
Tests
$ npm run mocha # Mocha and chai tests
$ npm run mocha-cat # Mocha and chai tests (Nyan cat)
$ test # Mocha and chai tests + nyc coverage
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.
./docs
All code documentation is available in https://ull-esit-pl-2021.github.io/espree-logging-module-alu0101238944
Release History
- 0.1.0 Initial release
- 0.1.1 Attempt 1 to fix bugs in publish
- 0.1.2 Attempt 2 to fix bugs in publish
- 0.1.3 Attempt 3 to fix bugs in publish
- 0.1.4 Fixing bugs in publish
- 0.2.0 Pattern can be a RegExp