UNPKG

snyk-nodejs-lockfile-parser

Version:
19 lines (18 loc) 534 B
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;