shopify-hscode
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

shopify-hscode

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release License: MIT

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 number

searchHSCodeByName(hsCodeName?:string)

filter out the hscode matching given string in description of hscode.

hsCodeName

Type: string search param

searchHSCodeById(hsCode?:string)

filter out the hscode having given string in hscode numebr.

hsCode

Type: string valid hscode

getHSCode(id:string)

get hscode by hscode number

id

Type: string valid hscode

getAllHSCode()

get complete list of hscode available in library

Package Sidebar

Install

npm i shopify-hscode

Weekly Downloads

29

Version

1.0.1

License

MIT

Unpacked Size

1.57 MB

Total Files

8

Last publish

Collaborators

  • iamsr