snyk-nodejs-lockfile-parser
Version:
Generate a dep tree given a lockfile
19 lines (18 loc) • 534 B
TypeScript
import * as querystring from 'querystring';
export interface Descriptor {
scope: string | null;
name: string;
range: string;
}
export interface ParsedRange {
protocol: string | null;
source: string | null;
selector: string;
params: querystring.ParsedUrlQuery | null;
}
export declare function parseDescriptor(string: string): Descriptor;
export declare function parseRange(range: string): ParsedRange;
export declare function stringifyIdent(ident: {
scope: string | null;
name: string;
}): string;