IOweb/node_modules/@iconify/tools/lib/download/npm/version.d.ts
2026-07-03 15:07:38 -05:00

16 lines
454 B
TypeScript

import { NPMPackageOptions } from './types.js';
interface GetNPMVersionResult {
version: string;
file?: string;
}
/**
* Get version of package from NPM registry
*/
declare function getNPMVersion(options: NPMPackageOptions): Promise<GetNPMVersionResult>;
/**
* Get version of package from filename
*/
declare function getPackageVersion(target: string): Promise<string>;
export { type GetNPMVersionResult, getNPMVersion, getPackageVersion };