UNPKG

cashify

Version:

Lightweight currency conversion library, successor of money.js

17 lines (16 loc) 426 B
interface Options { amount: number; from: string | undefined; to: string | undefined; } /** * Expression parser * * @param {string} expression - Expression you want to parse, ex. `10 usd to pln` or `€1.23 eur` * @return {Object} Object with parsing results * * @example * parse('10 EUR to GBP'); //=> {amount: 10, from: 'EUR', to: 'GBP'} */ export default function parse(expression: string): Options; export {};