sic-list
Maps Standard Industial Classification (SIC) codes to English descriptions and vice versa.
https://www.npmjs.com/package/sic-list
Available in typescript
https://www.npmjs.com/package/@types/sic-list
Example
const getCode getDescription = ; // codes must be stringsconsole; // "Other construction installation" console; // "52211" console; // undefined
How to change the description for a code
const overwrite getDescription = ; ; console; // "Growing of citrus fruits and wild mushrooms"
Methods
Usage:
const sicList = ;
All input is case-insensitive.
overwrite(sics)
Expects an array of sic objects containing code
and description
properties.
Replaces a description for a given code.
code: "01210" description: "Growing of white, black and red grapes" ;
getDescription(code)
Expects an sic code.
Returns the description for that sic code.
If not found, it returns undefined
.
getCode(description)
Expects the English sic description.
Returns the code for that country.
If not found, it returns undefined
.
getDescriptions()
Returns an array of all sic descriptions.
getCodes()
Returns an array of all sic codes.
getDescriptionList()
Returns a key-value object of all sics with the description as key.
getCodeList()
Returns a key-value object of all sics with the code as key.
getData()
Returns an array of all sic information, in the same format as it gets imported.
Install
npm install sic-list or yarn add sic-list
For typescript
npm install @types/sic-list or yarn add @types/sic-list
License
MIT
Source
Uses data from the Office of National Statistics (UK SIC 2007)
Which makes the list of SIC codes available free of charge.