mdmoney 1.1.2 copy "mdmoney: ^1.1.2" to clipboard
mdmoney: ^1.1.2 copied to clipboard

march.dev money library. Provides a new way to work with a money. From highly flexible creation to rich data manipulation and stringification options.

Changelog #

1.1.2 #

  • Fixed several getters:
    • isZero
    • isGreaterThanZero
    • isGreaterThanOrEqualZero
    • isLessThanZero
    • isLessThanOrEqualZero

1.1.1 #

  • Updated tests.

1.1.0 #

  • Extended Money from Amount (mdamount package).
  • Added new construction options:
    • Money.fromBigInt
    • Money.fromInt
    • Money.fromAmount
    • Money.oneIntOf
    • Money.oneInt
  • Added Money.toAmount conversion method.
  • Updated tests.

1.0.1 #

  • Changed FiatCurrency.$default from field to getter, to avoid unwanted behaviour.

1.0.0 #

  • Added fully functional and totally tested Money.
3
likes
160
points
171
downloads

Publisher

verified publisherthisismarch.dev

Weekly Downloads

march.dev money library. Provides a new way to work with a money. From highly flexible creation to rich data manipulation and stringification options.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

decimal, mdamount, meta

More

Packages that depend on mdmoney