Skip to content

soramitsukhmer/codex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@soramitsukhmer/codex

The Soramitsu Khmer Codex repo

Install

npm install @soramitsukhmer/codex
# or
yarn add @soramitsukhmer/codex

List

References

Country Codes

List of country code and dial code.

Data: data/country-codes.json

import { KH, US } from '@soramitsukhmer/codex/country'

console.log(KH)

/**
 * {
 *     name: string;
 *     dial_code: string;
 *     code: string;
 * }
 */

Credit: https://gist.github.com/anubhavshrimal/75f6183458db8c453306f93521e93d37

Currency Codes

Common Currency Codes in JSON

Data: data/common-currency.json

import { USD, KHR } from '@soramitsukhmer/codex/currency'

console.log(KHR)

/**
 * {
 *     symbol: string;
 *     name: string;
 *     symbol_native: string;
 *     decimal_digits: number;
 *     rounding: number;
 *     code: string;
 *     name_plural: string;
 * }
 */

Credits:

License

Licensed under MIT License.