snyk-nodejs-lockfile-parser
Version:
Generate a dep tree given a lockfile
5 lines (4 loc) • 363 B
TypeScript
import { PnpmProjectParseOptions } from '../types';
import { DepGraph } from '@snyk/dep-graph';
import { NodeLockfileVersion } from '../../utils';
export declare const parsePnpmWorkspaceProject: (pkgJsonContent: string, pnpmLockfileContents: string, options: PnpmProjectParseOptions, importer: string, lockfileVersion?: NodeLockfileVersion) => Promise<DepGraph>;