Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
plato was updated to support es6 by @devcrust, but needs an active maintainer to keep it moving forward.
Visualize JavaScript source complexity with plato.
Install the module with: npm install -g plato
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 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
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');
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 source analysis and visualizer
The npm package plato receives a total of 7,030 weekly downloads. As such, plato popularity was classified as popular.
We found that plato demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.