# sic-codes

> Easily use SIC code data

Latest version **1.0.2** (published 2022-01-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install sic-codes
pnpm add sic-codes
yarn add sic-codes
bun add sic-codes
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-01-26 |
| First published | 2021-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 48 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ben Ezard |
| Maintainers | ezard |
| Keywords | sic, sic code, sic codes, standard industrial classification |

## Links

- npm: https://www.npmjs.com/package/sic-codes
- Repository: https://github.com/Ezard/sic-codes
- Homepage: https://github.com/Ezard/sic-codes#readme
- Issues: https://github.com/Ezard/sic-codes/issues
- npm.io page: https://npm.io/package/sic-codes

## Recent versions

- 1.0.2 (latest) — 2022-01-26
- 1.0.1 — 2021-12-03
- 1.0.0 — 2021-11-30
- 0.1.4 — 2021-11-30
- 0.1.3 — 2021-11-30
- 0.1.2 — 2021-11-30
- 0.1.1 — 2021-11-30
- 0.1.0 — 2021-11-28

## README

# SIC Codes

## Installation

`npm i sic-codes -S`

### Usage

To get the description of a SIC code, use the `getCode` function:

```typescript
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:

```typescript
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:

```typescript
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
 * ]
 */
```

---
_Source: https://npm.io/package/sic-codes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
