UNPKG

sic-data-lookup

Version:

A small JavaScript/TypeScript utility for SIC code data lookup.

16 lines (15 loc) 755 B
/** * Converts a given SIC code into its corresponding business sector. * * @param {number|string} sicCode - The SIC code to classify. * @returns {string | null} The name of the sector, or null if no mapping is found. */ export declare function getSectorFromSic(sicCode: number | string): string | null; /** * Retrieves an array of SIC code prefixes that belong to a given business sector. * * @param {string} sectorName - The name of the sector to look up (e.g., 'Technology', 'Healthcare'). * @returns {string[]} An array of SIC code prefixes (as strings) associated with the sector. * Returns an empty array if the sector is not found or has no associated prefixes. */ export declare function getSicFromSector(sectorName: string): string[];