{"_id":"@alu0101101019/addlogging","_rev":"3-fa63ab2204d4a5e781dcb64401e52148","name":"@alu0101101019/addlogging","dist-tags":{"latest":"0.3.1"},"versions":{"0.0.0":{"name":"@alu0101101019/addlogging","version":"0.0.0","description":"A module that inserts messages in to the code that we give to it. The messages will tell you when you are entering in a function.","main":"add-logging.js","scripts":{"test":"add-logging --output salida.js entrada.js","installed-version":"npm ls @alu0101101019/addlogging"},"repository":{"type":"git","url":"git+https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin.git"},"keywords":["espree","logging","module","function","ULL","PL"],"author":{"name":"Aaron Jose Cabrera Martin","email":"alu0101101019@ull.edu.es","url":"https://github.com/AaronJoseCabreraMartin"},"license":"MIT","bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin/issues"},"homepage":"https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin#readme","gitHead":"90c0fcc941242592236c115d6fd981535e80e8f5","_id":"@alu0101101019/addlogging@0.0.0","_nodeVersion":"15.8.0","_npmVersion":"7.5.4","dist":{"integrity":"sha512-4ImfGI8JThqGg0R7ZmEB/7EK78qRmZGo9aZamkNEG7BAaURweteEz6IvRUu5pQRCjEW/wPVxwLwk78VtRltRuQ==","shasum":"13da462165292b160418678329ffe5d0975dcafd","tarball":"https://registry.npmjs.org/@alu0101101019/addlogging/-/addlogging-0.0.0.tgz","fileCount":3,"unpackedSize":3711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP5FfCRA9TVsSAnZWagAAMPEP/jtquKZhbowmuy7odqsB\nkibpht84tRGKf6kW12cxRyZRXn5bw2pFFfRJqAmGz7AGvq3xOx8K2Dqp/e+h\n7iaIJNfWczpQ2q456nGHTwwt/cNnW6CrJQJLrrXNlUPro8xThy1eJRJ3ZYgM\n0TIIBuls9f8bSpf2OI+1NGj4Rd512YEwMqRVn9uZq6rIFdWGcONO5qVvYbov\nJdvgZ5TR9JumkKd7sRAshk65Hdaz4ErxbuhIu6+3kCiLuRJYRykkBPFUhxa4\nVtpG7opqGJYlwvDqEmkvIRk6eY7yPLe6HwezNWG27UPOut3G7V0Nn1G4KOu8\nocj2/aTRcxgjyPRbM8aYb3WDWQeZWtBldPKCIfw4Vtq3eLAXZHvbBtwM05yQ\n4uhll3CFOpKlbmnoCU7+mi0ziiprQXaY8v3jwKAJB+yxbUiSAmzY7TQSBzhF\n9MdnMiYN3UuMC5tKNB8jlWPOTHtJ1jLCM+tSyYzy49fLiSsVKoOK/lMYWz+F\nmnnFWgH13+JrSU1qfuZrqYMRvpRZ5GcG/u+MXoNEqZJ3TMqNxzGtrKPWcSne\nIQOUWR3fGn0zzRTEhCj6qNTbWvXUzlSJ2g1ZY1y0lPnK8Ws/6yN8jXr85ijz\n1CpLpDkfqWUzlLll5oo2ekO1hkVdw2PPWVsGpVtuwGsUaSnQkxZnBKzCozBL\nJ6ke\r\n=+Gzm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQT/eLIQOzxkqVRvCt7zpO4P4Zv4kRibqWzyLM39CrYAiBuId/RpmasjxaKUg+dXBhpJneK1EP+/TIdvq9hbR5sow=="}]},"_npmUser":{"name":"alu0101101019","email":"alu0101101019@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101101019","email":"alu0101101019@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/addlogging_0.0.0_1614778719245_0.17048067490194385"},"_hasShrinkwrap":false},"0.1.0":{"name":"@alu0101101019/addlogging","version":"0.1.0","description":"A module that inserts messages in to the code that we give to it. The messages will tell you when you are entering in a function.","main":"index.js","bin":{"addlogging":"add-logging.js"},"scripts":{"test":"mocha --reporter spec","installed-version":"npm ls @alu0101101019/addlogging"},"repository":{"type":"git","url":"git+https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin.git"},"keywords":["espree","logging","module","function","ULL","PL"],"author":{"name":"Aaron Jose Cabrera Martin","email":"alu0101101019@ull.edu.es","url":"https://github.com/AaronJoseCabreraMartin"},"license":"MIT","bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin/issues"},"homepage":"https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin#readme","dependencies":{"commander":"^7.1.0","escodegen":"^2.0.0","espree":"^7.3.1"},"devDependencies":{"chai":"^4.3.3","mocha":"^8.3.0"},"_id":"@alu0101101019/addlogging@0.1.0","_nodeVersion":"15.8.0","_npmVersion":"7.5.4","dist":{"integrity":"sha512-VArNneL4a0URM6+qtmpjuVAJmpVNOKCyWEygZuA1yjmoUqPDDe1QsYk/Kj/23fzWCIqZBgiS1jDDnqoAXVyFXQ==","shasum":"f4a17bc1091baaf521c5ddc0ca0aa1d360262e27","tarball":"https://registry.npmjs.org/@alu0101101019/addlogging/-/addlogging-0.1.0.tgz","fileCount":8,"unpackedSize":14749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQXPRCRA9TVsSAnZWagAAJdcP/0J+S2JK6alM00NUI0Iu\n9C+xw3yRMvJOSMXxmnqL3CCwGtpzIPlZf9Sk5Y5LZzv9h+RGapUQkzObdjlJ\nmE506YsU6p9PUEaKvHvtBVtZdJQuWGAaQfyHA1S3vi4lBQ2Kc3XdIUKMGICp\ny9vb+B3ZRIpapCi0/DTWaMiqt1FiPL0KszWVJKkMTNoW6mRta54uIsf0T96s\nx249wj+lW5hNdVMUJ7Nb1WMMtPQve1LLezYTFheCRv5pVT1LSoom46tHrwtd\nmOhWTeaa0kwQCEcgH8YHhaAmrxYrNegKHeYTAryOh+1P2oZqURic8N7qDSX6\nD3Yz6YTLzlPVsdP48W6z1rxiljLCq10a3+dGbBflwYLHS9BVeekWdHgvFRyW\nvUljzfAPFYR6Tbk27swmMSU6+/8BAqpMNkTeeX+DSs5ktdHdJ0lirFbTDeWh\nypgwTQO0zrPqIBUKfKtbjacpYaP+Mlnp/BBOt2yLhdeUkP2XNxIAfxaUQ8T1\n2mThpQ6IVqZjR5amXnfXLRdfTMKJGlCkaUAwi2FEE8E6/i2zXWTGyhUMle+N\nwVfAxiMIqUSv4k38e3kbJKmQbPQVwOcHd6Ak2/hPW8d3bsyQtvS5Bi7KvhPS\nU1Lm4UOI3xtvPEQrQa6WL0qAnkRmKKr9cEq5GGo4UmSR8qZdY6YhOgmTmPyh\nnTIR\r\n=COuj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkDZ6TJB29nooVmDBpogGpma5WlFCeT0kFgvFuRhra8AiEAmDzFhEfC2ryi75Z3HhslXgLuRGrKwtiGjv/MHx4NC+E="}]},"_npmUser":{"name":"alu0101101019","email":"alu0101101019@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101101019","email":"alu0101101019@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/addlogging_0.1.0_1614902225312_0.8723128858239326"},"_hasShrinkwrap":false},"0.3.1":{"name":"@alu0101101019/addlogging","version":"0.3.1","description":"A module that inserts messages in to the code that we give to it. The messages will tell you when you are entering in a function.","main":"index.js","bin":{"addlogging":"bin/add-logging.js"},"scripts":{"documentation":"documentation build /source/index.js -f html -o docs","jsdoc":"jsdoc source -d docs","test":"mocha --reporter spec","installed-version":"npm ls @alu0101101019/addlogging"},"repository":{"type":"npm","url":"https://www.npmjs.com/package/@alu0101101019/addlogging"},"keywords":["espree","logging","module","function","ULL","PL"],"author":{"name":"Aaron Jose Cabrera Martin","email":"alu0101101019@ull.edu.es","url":"https://github.com/AaronJoseCabreraMartin"},"license":"MIT","bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin/issues"},"homepage":"https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin#readme","dependencies":{"@alu0101101019/addlogging":"^0.1.0","commander":"^7.1.0","escodegen":"^2.0.0","espree":"^7.3.1"},"devDependencies":{"chai":"^4.3.3","mocha":"^8.3.0"},"gitHead":"178bb66a64c01c934f2f3ce2c4a737c0c92d9adb","_id":"@alu0101101019/addlogging@0.3.1","_nodeVersion":"15.8.0","_npmVersion":"7.5.4","dist":{"integrity":"sha512-O92JwY2tl+Y+u6WseZ9gy8nCvjMR32K9PVCq+BttbYKTDpJ0PaxQMTQO1swARVOqAbmm+QkB2zTFHbnZ1T4X7Q==","shasum":"94269725f5bd2d3633d0d8297042bcbbeb3f4745","tarball":"https://registry.npmjs.org/@alu0101101019/addlogging/-/addlogging-0.3.1.tgz","fileCount":61,"unpackedSize":2600632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUe+mCRA9TVsSAnZWagAAPYkP/Rp5mfw+ggME1ogO2vzw\n+XpvzZw99F5AMXJLQN5Ts4HhpT9YscKQCu86CsjUhPAhTIE32me5ZTqgyAWD\nNbP1uoJyzofxJOHwNZ5OLH75xRITcv7f1NaEyekiT0Ng1g+aDxAKVXaH93Lk\nu2mzeUSteyGhvSt1cezoG18nm/h7x6XMvDo3tTrJE3FmTMAdQj1/K+8gnLa4\nEUowExqtQ4sxjQh3zGuznlikYI5ZNWTFLPTdJgtEfXukxso4h+CbTjMrVsiB\nYd4GEbIJ/xEZCYhqhZ7YgPpv/MRLokJ0mUQopvKBj79iNYWguHUHJ+APkV6b\n7b5cIvmdLhmdY8Zlsh9fSj3T5zyXTnOGKnhBc5IU52nMsUo1xswxut6qVR82\nFE38spz3tq8P8OMRoM2H+hRcq8J011cc73t/5i6p1A1EZ0WrfhdEguFheBUd\nogtA8uzxwi6GnLR0InSGffWZ1EmJYucmxzyICvv5nVebG6qi3urCKYXKdFYr\nlrGEqGXzy9UOIvZagbtOz0ccYE/VVyEoGDlBEu8dUcbXsOX6pVyjIWtx/JnV\nNFv5bX6YYoU5GsnuQIZihQ7U28eIxTjVHeKsR/vMUXsOdNW+Em+Dkh1rlcIn\nwpTG5ZegWhF65O8QQPCVIbyZ8UTjmo/bTAjVUx7295yBK59NKFYt3ZDTDPhr\nFuN1\r\n=550z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARRHup71s537DD2zEHN5zUsv++WmFtaP5mApQpZz78lAiAAqdYfOpmgzQe2JFtQNXxUd9b+DodYXMDRQfZX0c9Vjg=="}]},"_npmUser":{"name":"alu0101101019","email":"alu0101101019@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101101019","email":"alu0101101019@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/addlogging_0.3.1_1615982501571_0.6458275312821244"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-03T13:38:39.202Z","0.0.0":"2021-03-03T13:38:39.410Z","modified":"2022-04-04T13:41:01.864Z","0.1.0":"2021-03-04T23:57:05.470Z","0.3.1":"2021-03-17T12:01:41.808Z"},"maintainers":[{"name":"alu0101101019","email":"alu0101101019@ull.edu.es"}],"description":"A module that inserts messages in to the code that we give to it. The messages will tell you when you are entering in a function.","homepage":"https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin#readme","keywords":["espree","logging","module","function","ULL","PL"],"repository":{"type":"npm","url":"https://www.npmjs.com/package/@alu0101101019/addlogging"},"author":{"name":"Aaron Jose Cabrera Martin","email":"alu0101101019@ull.edu.es","url":"https://github.com/AaronJoseCabreraMartin"},"bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/espree-logging-module-AaronJoseCabreraMartin/issues"},"license":"MIT","readme":"## AddLogging Module\n\n### **Autor**: _Aarón José Cabrera Martín_\n\n**addLogging** module is a small npm module. It's exports a fuction that receive a JavaScript Code and return the same JavaScript Code but adding a _\"console.log\"_ message when the execution of the code enters in a function. On the message, we can read the name of the function (if it has it) and see the parameters name and his values. addLogging supports all the types of JavaScript functions.\n\nBesides, this module provides a executable command-like file. This program receibe a JavaScript file as an input and it applies addlogging function I mentioned before. \nHis uses is explained on his own section.\n\n\n#### Installation\n\n```bash\nnpm install -G @alu0101101019/addLogging\n```\n\n```bash\nnpm install @alu0101101019/addLogging --save\n```\n\n### Executable\n\nThis module includes an executable. This programm must receive as an input the name of a JavaScript file.\nThis programm has a few options that can be actived, these options are: \n\n- **-h / --help** : Shows the help. It's simmilar to this information.\n- **-o / --output** : Change the output of the program, exporting the output to a file instead of show it on console.\n- **-p / --pattern** : Instead of adding the console.log messages on all functions, this option adds the message only on the functions that has on his name the pattern.\n\n#### Usage Example\n\nIf you globally installed addlogging you can launch addlogging program with:\n\n```bash\naddlogging entrada.js -o salida.js\n```\n\n*If you not installed it globally you can find it in your node_modules/@alu0101101019/bin directory*\n\n\nWhere:\n\n- Input: _\"entrada.js\"_\n\n```JavaScript\nfunction foo(a, b) {\n  var x = 'blah';\n  var y = (function () {\n    return 3;\n  })();\n  let z = (e => { \n    return e + 1 \n  })(4);\n}\nfoo(1, 'wut', 3);\n\nfunction sinArgumentos( a ) {\n  return a/2;\n}\n```\n\n- Output: _\"salida.js\"_\n\n```JavaScript\nfunction foo(a, b) {\n    console.log(`Entering foo (a=${ a },b=${ b }) On line: 1. `);\n    var x = 'blah';\n    var y = function () {\n        console.log(`Entering <anonymous function> () On line: 3. `);\n        return 3;\n    }();\n    let z = (e => {\n        console.log(`Entering <anonymous function> (e=${ e }) On line: 6. `);\n        return e + 1;\n    })(4);\n}\nfoo(1, 'wut', 3);\nfunction sinArgumentos(a) {\n    console.log(`Entering sinArgumentos (a=${ a }) On line: 12. `);\n    return a / 2;\n}\n```\n\n\n\n\n### Release History\n\n- 0.3.1 Fixing publish bugs\n- 0.3.0 Fixing publish bugs\n- 0.2.0 Executable add-logging.js added\n- 0.1.0 Module exports addLogging function\n- 0.0.1 Module creation\n","readmeFilename":"README.md"}