0.2.1 • Published 7 years ago

@psmtec/iso4217 v0.2.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

haxe-iso4217

haxe usage

import iso4217.CurrencyCode;
import iso4217.Currencies;
import iso4217.UnitConverter;

trace(EUR.minorToMajor(1234));
trace(Currencies.fromCode('EUR').minorToMajor(1234));

js setup

npm install @psmtec/iso4217

js usage

import { Currencies } from '@psmtec/iso4217';

console.log(Currencies.fromString('EUR').minorToMajor(123456));
console.log(Currencies.fromNumber(978).minorToMajor(123456));
console.log(Currencies.all());