rajaprabhujschecker

0.1.1 • Public • Published

jschecker

Installation

Install the module with: npm install -g rajaprabhujschecker

Usage

From the commandline

Usage : jschecker [options] -d <output_dir> <input files>
  -h, --help
      Display this help text.
  -q, --quiet
      Reduce output to errors only
  -v, --version
      Print the version.
  -x, --exclude : String
      File exclusion regex
  -d, --dir : String *required*
      The output directory
  -r, --recurse
      Recursively search directories
  -l, --jshint : String
      Specify a jshintrc file for JSHint linting
  -e, --eslint : String
      Specify a eslintrc file for ESLint linting
  -t, --title : String
      Title of the report
  -D, --date : String
      Time to use as the report date (seconds, > 9999999999 assumed to be ms)
  -n, --noempty
      Skips empty lines from line count

Example

jschecker -r -d report src

Extended example

jschecker -r -d report -l .jshintrc -t "My Awesome App" -x .json routes/*.js

From scripts

var jschecker = require('jschecker');

var files = [
  'path/to/javascript/file1.js',
  ...
  'path/to/javascript/fileN.js'
];

var outputDir = './output/dir';
// null options for this example
var options = {
  title: 'Your title here'
};

var callback = function (report){
// once done the analysis,
// execute this
};

jschecker.inspect(files, outputDir, options, callback);

Data sources

Contributors

  • [Rajaprabhu]

Release History

  • 0.1.0 initial release

License

Copyright (c) 2019 Rajaprabhu Licensed under the MIT license.

Package Sidebar

Install

npm i rajaprabhujschecker

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

1.36 MB

Total Files

93

Last publish

Collaborators

  • rajaprabhu