Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ReinsBrain/sic-db

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sic-db

A small javascript (hash) database of sic codes and helper functions

Usage

Use npm to install in your project:

npm install sic-db

or, clone and include in your project using require (CommonJS, NodeJS):

var sicdb = require('sic-db');

or, simply include as a script tag:

<script src="sicdb.js" />

It exposes a few hash objects such as:

  • sicdb.divs which provides full division names as values corresponding to the division code ("A" - "K")

  • sicdb.divs_cats which provides relation from division codes to major (2 digit) category code using division code as key ("A" - "K") and associated values stored as an array

  • sicdb.list which provides the complete hash of sic major category (2 digit), sub-category (3 digit) and SIC (4 digit) codes stored as keys with category names stored as corresponding values.

  • sicdb.cats_divs which provides a reverse index of sicdb.divs_cats such that major category (2 digit) codes are the keys and their associated values represent sicdb.divs entries (keys).

TODO: provide some commonly used helper functions, also unit-testing and coverage

Contributions are welcome

About

A small javascript (hash) database of sic codes and helper functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.