UNPKG

sic-data-lookup

Version:

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

262 lines (261 loc) 4.54 kB
// Import the pre-processed JSON data directly using a relative path. // When mappings.ts (compiled to dist/src/mappings.js) loads, // '../generated-sic-data.json' will correctly point to dist/generated-sic-data.json. import rawSICCodeTableData from './generated-sic-data.json' with { type: 'json' }; /** * An object that maps business sectors to an array of their associated SIC code prefixes. * A SIC code belongs to a sector if it starts with one of the prefixes in the array. * Data is structured based on the Fintel industry overview page (https://fintel.io/industry). */ export const sectorMap = { "Communication Services": [ "366", "48", "481", "482", "483", "484", "489" ], "Consumer Discretionary": [ "22", "221", "222", "225", "227", "25", "251", "252", "253", "254", "259", "314", "34", "341", "342", "343", "344", "345", "346", "347", "348", "349", "363", "365", "371", "373", "374", "375", "501", "502", "553", "562", "565", "566", "571", "70", "701", "751", "781", "782", "783", "784", "794", "799", "811", "82" ], "Consumer Staples": [ "02", "09", "20", "201", "202", "203", "204", "205", "206", "207", "208", "209", "21", "211", "23", "232", "233", "234", "239", "513", "514", "515", "518", "519", "53", "531", "533", "539", "54", "541" ], "Energy": [ "12", "122", "13", "131", "138", "29", "291", "299", "46", "461", "517" ], "Financials": [ "60", "602", "603", "609", "61", "611", "614", "615", "616", "618", "62", "621", "622", "628", "63", "631", "632", "633", "635", "636", "639", "64", "641", "67", "677", "679" ], "Health Care": [ "283", "384", "385", "512", "80", "801", "805", "806", "807", "808", "809" ], "Industrials": [ "07", "15", "16", "17", "34", "35", "37", "40", "42", "44", "45", "47", "50", "73", "75", "76", "87" ], "Information Technology": [ "357", "367" ], "Materials": [ "08", "10", "104", "109", "14", "24", "242", "243", "245", "26", "261", "262", "263", "265", "267", "27", "271", "272", "273", "274", "275", "276", "277", "278", "279", "281", "282", "285", "286", "287", "289", "30", "301", "302", "305", "306", "308", "32", "321", "322", "323", "324", "326", "327", "328", "329", "33", "331", "332", "333", "334", "335", "336", "339", "503", "505", "511", "516", "52", "521" ], "Real Estate": [ "65", "651", "653", "655" ], "Utilities": [ "49", "491", "492", "493", "494", "495", "496", "499" ] }; /** * Raw CSV data containing SIC codes, Office, and Industry Titles. * This data is used for detailed lookup of SIC codes. * This has been extracted from the SEC Government page (https://www.sec.gov/search-filings/standard-industrial-classification-sic-code-list). */ export const parsedSICCodeTableData = rawSICCodeTableData;