Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
plato-esnext
Advanced tools
A fork of plato with ESLint and ES2015 support.
Visualize JavaScript (including ES2015) source complexity with plato.
Install the module with: npm install -g plato-esnext
Usage : plato [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 name exclusion
-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
-s --sourcetype :
Specify a source type (script or module). ES2015 requires 'module'
-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
plato -r -d report src
Extended example
plato -r -d report -l .jshintrc -t "My Awesome App" -x .json routes/*.js
var plato = require('plato-esnext');
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
};
plato.inspect(files, outputDir, options, callback);
Copyright (c) 2012 Jarrod Overson Licensed under the MIT license.
FAQs
JavaScript (including ES2015) source analysis and visualizer
We found that plato-esnext demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.