ropods-cashify
Version:
Modern, lightweight currency conversion library with real-time exchange rates, INR support, and free API integration. Production-ready TypeScript library for RoPods organization with zero dependencies and comprehensive testing.
17 lines • 462 B
TypeScript
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 {};
//# sourceMappingURL=parser.d.ts.map