sic-codes
v1.0.2
Published
Easily use SIC code data
Downloads
29
Maintainers
Readme
SIC Codes
Installation
npm i sic-codes -S
Usage
To get the description of a SIC code, use the getCode
function:
import { getCode } from 'sic-codes';
const description = getCode('62020'); // 'Information technology consultancy activities'
To get the SIC code of a description, use the getDescription
function:
import { getDescription } from 'sic-codes';
const description = getDescription('Information technology consultancy activities'); // '62020'
To get a list of all SIC code data, use the getData
function:
import { getData } from 'sic-codes';
const data = getData();
/** data is in the format [code: string, description: string][], e.g.
* [
* ['01110', 'Growing of cereals (except rice), leguminous crops and oil seeds'],
* ['01120', 'Growing of rice'],
* ...etc
* ]
*/