@wkovacs64/add-icon
Version:
CLI tool to download and transform icons from Iconify
18 lines (17 loc) • 629 B
TypeScript
import type { Config } from './types.js';
/**
* Parses an icon reference into iconSet and iconName
* @param iconReference - Reference in format 'iconSet:iconName'
* @returns Object with iconSet and iconName
*/
export declare function parseIconReference(iconReference: string): {
iconSet: string;
iconName: string;
};
/**
* Downloads an icon and applies transforms
* @param iconReference - Icon reference (e.g., 'heroicons:arrow-up-circle')
* @param config - Configuration options
* @returns Path to saved icon file
*/
export declare function downloadIcon(iconReference: string, config: Config): Promise<string>;