cashify
cashify copied to clipboard
💸 Lightweight currency conversion library, successor of money.js
I'm the author of [nestjs-cashify](https://github.com/vahidvdn/nestjs-cashify). I decided to update my package as well. I'm encountering some issues after updating to Cashify 3+ and building my package. Since my package ts...
**Error** `Error [ERR_REQUIRE_ESM]: require() of ES Module` **Code** `import {convert} from 'cashify';` `const { convert }: any = await import('cashify');` `const convert: any = (await import('cashify')).convert`; None of those examples...
Breaking changes to version 3.0+ of cashify has the following breaking changes that you did not mention in your Readme. `const { Cashify } = require('cashify'); ^ Error [ERR_REQUIRE_ESM]: require()...
``` convert(value, { from: 'USD', to: 'JPY', base: 'USD', rates: exchangeRates, }) ``` when value is NaN it throw ``rates` object does not contain either `from` or `to` currency!` ....
I would like to use [cashify][1], but when try in on a new project, I get the below error. tsc index.ts && node index.js file:///home/ss/test/index.js:2 exports.__esModule = true; ^ ReferenceError:...