mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-06 05:58:20 -05:00
8 lines
327 B
JavaScript
8 lines
327 B
JavaScript
const audit = require('./lib').default
|
|
const { readWantedLockfile } = require('@pnpm/lockfile.fs')
|
|
|
|
readWantedLockfile('../..', {})
|
|
.then((lockfile) => audit(lockfile, { registry: 'https://registry.npmjs.org' }))
|
|
.then((auditResult) => console.log(JSON.stringify(auditResult, null, 2)))
|
|
.catch(console.log.bind(console))
|