
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ropods-cashify
Advanced tools
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.
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.
🎉 Now published on npm! Install with: npm install ropods-cashify
npm install ropods-cashify
import { convert } from 'ropods-cashify';
// Convert with live rates (recommended)
const amount = await convert(100, 'USD', 'INR');
console.log(`100 USD = ${amount} INR`); // Uses real-time rates
// Convert EUR to USD
const euroToUsd = await convert(50, 'EUR', 'USD');
console.log(`50 EUR = ${euroToUsd} USD`);
import { Cashify } from 'ropods-cashify';
const rates = {
GBP: 0.737,
EUR: 0.851,
// Define rates (optional - for offline usage)
const rates = {
GBP: 0.737,
EUR: 0.851,
USD: 1.00,
INR: 86.42 // Current real market rate
};
const cashify = new Cashify({ base: 'USD', rates });
// Convert 10 USD to INR
const result = cashify.convert(10, { from: 'USD', to: 'INR' });
console.log(result); // 864.2
// Convert USD to INR
const usdToInr = cashify.convert(100, { from: 'USD', to: 'INR' });
console.log(usdToInr); // 8642
import { Cashify } from 'ropods-cashify';
// Uses live rates automatically
const cashify = new Cashify();
// Convert with real-time rates
const result = await cashify.convert(100, { from: 'USD', to: 'INR' });
console.log(`100 USD = ${result} INR`);
// Convert multiple currencies
const conversions = await Promise.all([
cashify.convert(50, { from: 'EUR', to: 'USD' }),
cashify.convert(1000, { from: 'INR', to: 'GBP' }),
cashify.convert(75, { from: 'GBP', to: 'EUR' })
]);
console.log('Conversions:', conversions);
import { convert, Cashify } from 'ropods-cashify';
// Method 1: Direct convert function (simplest)
const amount1 = await convert(100, 'USD', 'INR');
// Method 2: Using Cashify class
const cashify = new Cashify();
const amount2 = await cashify.convert(100, { from: 'USD', to: 'INR' });
// Both methods use real-time exchange rates automatically
convert(amount, from, to, options?)Convert currency using live exchange rates.
const result = await convert(100, 'USD', 'INR');
// Returns: Promise<number>
Cashify Classconst cashify = new Cashify(options?);
convert(amount, options) - Convert currencygetRate(from, to) - Get exchange rate between currenciesimport { Cashify } from 'ropods-cashify'; // Updated package name
const cashify = new Cashify({ base: 'EUR', rates });
const result = cashify.convert(10, { from: 'EUR', to: 'INR' });
import { convert } from 'ropods-cashify';
// Parse currency strings with INR
const result = await convert(1000, 'INR', 'USD'); // Real-time conversion
console.log(result); // Converted amount using live rates
import { Cashify } from 'ropods-cashify';
// Use live rates (recommended)
const cashify = new Cashify();
// Common INR conversions with real market rates
const usdToInr = await cashify.convert(1, { from: 'USD', to: 'INR' });
const inrToUsd = await cashify.convert(1000, { from: 'INR', to: 'USD' });
const eurToInr = await cashify.convert(100, { from: 'EUR', to: 'INR' });
const inrToEur = await cashify.convert(5000, { from: 'INR', to: 'EUR' });
console.log(`1 USD = ${usdToInr} INR`);
console.log(`1000 INR = ${inrToUsd} USD`);
console.log(`100 EUR = ${eurToInr} INR`);
console.log(`5000 INR = ${inrToEur} EUR`);
RoPods Cashify supports integration with free exchange rate APIs for live rates:
import { Cashify } from 'ropods-cashify';
// Uses free APIs automatically - no configuration needed
const cashify = new Cashify();
const result = await cashify.convert(100, { from: 'USD', to: 'INR' });
import { convert } from 'ropods-cashify';
// Automatically fetches live rates from free APIs
const result = await convert(100, 'USD', 'INR');
console.log(`100 USD = ${result} INR`); // Uses real-time rates
import { Cashify } from 'ropods-cashify';
// Fetch live rates from free API
async function fetchLiveRates() {
const response = await fetch('https://api.exchangerate-api.com/v4/latest/USD');
const data = await response.json();
return {
base: data.base,
rates: data.rates,
lastUpdated: data.date
};
}
// Use with custom rates
const liveRates = await fetchLiveRates();
const cashify = new Cashify({
base: liveRates.base,
rates: liveRates.rates
});
const result = cashify.convert(100, { from: 'USD', to: 'INR' });
ExchangeRate-API (https://api.exchangerate-api.com)
Open Exchange Rates (Free) (https://open.er-api.com)
FloatRates (https://www.floatrates.com)
convert(amount, from, to, options?)Convert currency using live exchange rates.
const result = await convert(100, 'USD', 'INR');
// Returns: Promise<number>
Cashify Classconst cashify = new Cashify(options?);
convert(amount, options) - Convert currencygetRate(from, to) - Get exchange rate between currenciesamount (number | string) - Amount to convertoptions (object) - Conversion options
from (string) - Source currency code (USD, EUR, GBP, INR, etc.)to (string) - Target currency code (USD, EUR, GBP, INR, etc.)base (string) - Base currency for rates (optional)rates (object) - Exchange rates (optional - uses live rates if not provided)This package is continuously tested using CircleCI:
Pipeline Status: View Latest Builds
This library is maintained by the RoPods organization. For contributions and issues:
MIT License - see the LICENSE file for details.
Based on the original Cashify library by Antoni Kępiński. Enhanced and maintained by RoPods organization for organizational use while keeping it available for the community.
Made with ❤️ by RoPods Organization
FAQs
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.
We found that ropods-cashify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.