ciiu-arl
v1.0.9
Published
Exports risk-classification.json as a package.
Downloads
69
Maintainers
Readme
risk-classification
Exports the risk-classification.json dataset and TypeScript types for risk classification codes, as published in the ciiu-arl npm package.
Installation
npm install ciiu-arlUsage
Import the JSON data
import {riskClassification, type RiskClassification} from "ciiu-arl";Get risk classification by CIIU code
import { getRiskClassification } from "ciiu-arl";
// Get risk classification for a CIIU code
const result = getRiskClassification("0111");
// Returns: [{ risk: "2", ciiu: "0111", code: "01", description: "..." }, ...]The getRiskClassification function takes a CIIU code as a string and returns an array of matching risk classification records. If no exact match is found, it attempts to match by the first 3 digits of the CIIU code.
License
ISC
