Documentation
¶
Overview ¶
Package npm provides the npm/Node.js ecosystem plugin.
Index ¶
- type Plugin
- func (p *Plugin) Detect(ctx context.Context, path string) bool
- func (p *Plugin) GetFix(ctx context.Context, pkg ecosystem.Package, vuln ecosystem.Vulnerability) (*ecosystem.FixAction, error)
- func (p *Plugin) Info() ecosystem.PluginInfo
- func (p *Plugin) NativeAudit(ctx context.Context, path string) (*ecosystem.ScanResult, error)
- func (p *Plugin) Scan(ctx context.Context, path string) (*ecosystem.ScanResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct{}
Plugin implements the npm ecosystem.
func (*Plugin) GetFix ¶
func (p *Plugin) GetFix(ctx context.Context, pkg ecosystem.Package, vuln ecosystem.Vulnerability) (*ecosystem.FixAction, error)
GetFix returns the npm command to fix a vulnerability.
func (*Plugin) NativeAudit ¶
NativeAudit runs npm audit and returns findings.
Click to show internal directories.
Click to hide internal directories.