shopify-hscode
!npm packagenpm-imgnpm-url
!Build Statusbuild-imgbuild-url
!Downloadsdownloads-imgdownloads-url
!Issuesissues-imgissues-url
!Code Coveragecodecov-imgcodecov-url
!Commitizen Friendlycommitizen-imgcommitizen-url
!Semantic Releasesemantic-release-imgsemantic-release-url
hscode collection in a library
Install
# npm
npm install shopify-hscode
# yarn
yarn add shopify-hscode
Usage
import { getAllHSCode } from 'shopify-hscode';
getAllHSCode();
//=> [{
section: 'I',
hscode: '01',
description: 'Animals; live',
parent: 'TOTAL',
level: '2',
},...]
API
getHSCodeChild(parent?:string)
get; the list of hscode childs. If not proide by default will return top level hs codes.parent
Type:string
parent hs code numbersearchHSCodeByName(hsCodeName?:string)
filter out the hscode matching given string in description of hscode.hsCodeName
Type:string
search paramsearchHSCodeById(hsCode?:string)
filter out the hscode having given string in hscode numebr.hsCode
Type:string
valid hscodegetHSCode(id:string)
get hscode by hscode numberid
Type:string
valid hscode