Debian::PkgJs::SimpleAudit3pm
Perl module to get security advisories from npm registry
Usage
use Debian::PkgJS::SimpleAudit;my $audit = advisories('/path/to/nodejs/module');# ORmy $audit = advisories('@babel/runtime', '0.7.16');if($audit) {print STDERR $audit;exit 1;}
Overview
Debian::PkgJS::SimpleAudit provides a single function to get security advisories from NPM registry.
Export
advisories()-
This function build a query to get all NPM security advisories for the given JS module. It returns a string in the same format than "
"npm audit"" (empty if no advisories are available).advisories()takes one or two arguments:advisories('/path/to/module'): use name and version found in package.json (or package.yaml).
advisories($name,$version): use given module name and version
Copyright and license
Copyright Yadd <[email protected]>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. If not, see <http://www.gnu.org/licenses/>.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.