@albertocruzluis/espree-logging

0.2.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @albertocruzluis/espree-logging

Weekly Downloads

10

Version

0.2.2

License

MIT

Unpacked Size

1.57 MB

Total Files

39

Last publish

Collaborators

  • albertocruzluis