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