A comprehensive TypeScript library providing easy access to ISO currency codes and related information.
- Complete list of ISO currency codes
- Detailed information for each currency, including:
- ISO code
- Fraction digits
- Currency name
- Symbol (where available)
- Unicode representation
- HTML and Hex codes
- Countries using the currency
npm install @sctg/currencies
import { IsoCode, IsoCodes, isoCodes } from '@sctg/currencies';
// Get information about a specific currency
const usdInfo = isoCodes.USD;
console.log(usdInfo);
// Output:
// {
// isoCode: '840',
// fractionDigit: 2,
// symbol: '$',
// unicode: 'U+00024',
// htmlCode: '$',
// hexCode: '$',
// currencyName: 'US Dollar',
// countries: ['United States of America (The)', 'Puerto Rico', ...]
// }
A type representing all available ISO currency codes.
An interface describing the structure of the currency information object.
An object containing detailed information for all ISO currencies.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is MIT licensed.