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