@albertocruzluis/espree-logging

AddLogging is a module NPM for code tree parse

Usage no npm install needed!

<script type="module">
  import albertocruzluisEspreeLogging from 'https://cdn.skypack.dev/@albertocruzluis/espree-logging';
</script>

README

addLogging CLI

npm version

A small library providing utility methods to create tree parse code since cli or node module

Table of Contents

Installation

Install Globally

npm i -g @albertocruzluis/espree-logging

Install Locally

npm i @albertocruzluis/espree-logging --save

Usage

CLI

node_modules/.bin/addLogging -h or --help
Usage: add-logging [options] <filename> [...]

AddLogging is a module NPM for code tree parse

Options:
  -V, --version                        output the version number
  -o, --output <filename>              set output file
  -p, --pattern <functionNamePattern>  insert logs of match function name pattern
  -h, --help                           output usage information

Generate Parse Code of input Code

const addLogging = require('@albertocruzluis/espree-logging')

const input = 'let z = (e => { 
              return e +1 
              })(4)'
console.log(addLogging(input))

License

MIT

Release History

  • 0.1.1 Initial release
  • 0.2.0 Add Pattern Function Name in CLI