0.0.10 • Published 3 years ago
auditphobia-gadget v0.0.10
Auditphobia Gadget 🧐
Core tool used by Auditphobia to get the vulnerabilities of a npm package
Get started
yarn add auditphobia-gadget
# or
npm install auditphobia-gadget
Usage
import { generatePacakgeAudit } from "auditphobia-gadget";
const myFunction = async () => {
try {
const audit = await generatePacakgeAudit({
name: "auditphobia",
version: "1.0.0",
});
console.log(audit); // [{ type: 'auditAdvisory', ... }]
} catch (err) {
// handle error
}
};