UNPKG

apisurf

Version:

Analyze API surface changes between npm package versions to catch breaking changes

22 lines (21 loc) 668 B
import { InspectResult } from '../types/InspectResult.js'; /** * Options for the inspect analyzer. */ export interface InspectOptions { /** Package name to inspect */ packageName: string; /** Package version to inspect */ version: string; /** Registry URL for npm packages */ registry?: string; /** Enable verbose logging */ verbose?: boolean; /** Output format */ format?: string; } /** * Analyzes a single version of an NPM package and extracts its API surface. * Handles multiple entry points if the package has an exports map. */ export declare function analyzeInspect(options: InspectOptions): Promise<InspectResult>;