Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vcl-doc-gen
Advanced tools
A documentation generator for the VCL based on a set of modules or an entry
point package.json
and its recursive dependencies.
In most cases you want the doc-gen to use a single package.json
listing all dependencies from your project.
The output will look like the VCL's module browser.
You can also generate a JSON doc only, which includes all infos needed to display it in a browser for example. This is what the vcl-doc-client uses to render the documentation.
The main purpose of this module is to generate a JSON data structure
in which all documentation relevant information is collected.
Modules considered need to have a vcl
property in the package.json
file
according to the structure
explained here.
Each module's documentation file (defaults to README.md
) is picked and
copied into the JSON structure as well as the meta data from package.json
.
The browsable HTML output is generated by the vcl-doc-client module based on the input JSON data.
npm -g i vcl-doc-gen
cd someProject
vcl-doc-gen --entry ./package.json --output doc.html
All arguments are optional.
Option | Default | Description |
---|---|---|
--name | VCL Documentation | Browser Title & Main heading |
--output | vcl-documentation.html | Output HTML file |
--entry | ./package.json | Entry file. |
--basePath | current working dir |
See Options for a more detailed description.
npm install --save-dev vcl-doc-doc-gen
./node_modules/.bin/vcl-doc-gen
var docGenerator = require('vcl-doc-gen');
docGenerator.generateHtml({
name: 'VCL Documentation',
entryPackage: './package.json',
output: './documentation.html'
});
var docGenerator = require('vcl-doc-gen');
docGenerator.generate({
name: 'VCL Documentation',
entryPackage: './package.json',
output: './doc.json'
});
name
The name of the documentation. When using vcl-doc-client
this will be
displayed in the header and set as the page title.
Default: name: 'VCL Documentation'
entryPackage
The package that the doc-gen should parse to find all VCL dependencies and generate the documentation from.
Example: entryPackage: './package.json'
packages
You can put a list of paths to additional packages here or use this as an
lternative to the entryPackage
option and set your packages manually.
Example: packages: ['../vcl-test', './some/package']
output
The file to output the finished json doc.
Default: output: './doc.json'
removeTopHeading
With this option, all level 1 headings from the package readme files are removed.
Defaults to true
, because most packages have the package name as the first
heading and the vcl-doc-client
does already display the package name
above the readme.
Default: removeTopHeading: true
basePath
The base path.
Example: basePath: './my-project'
FAQs
VCL Documentation Generator
The npm package vcl-doc-gen receives a total of 4 weekly downloads. As such, vcl-doc-gen popularity was classified as not popular.
We found that vcl-doc-gen 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.