0.2.2 • Published 4 years ago

@albertocruzluis/espree-logging v0.2.2

Weekly downloads
218
License
MIT
Repository
github
Last release
4 years ago

addLogging CLI =========

npm version

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

Table of Contents

  • Installation
  • Usage
  • License

    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