npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

calcufly-formulas

v1.0.0

Published

Comprehensive JavaScript library for mathematical and financial calculations - mortgages, BMI/BMR, unit conversions, compound interest, geometry formulas and more

Readme

CalcuFly Formulas

A comprehensive JavaScript library for mathematical, financial, and scientific calculations. Perfect for developers who need reliable calculation formulas without the complexity.

For interactive online calculators, visit CalcuFly.com - the most complete calculator suite available.

Installation

npm install calcufly-formulas

Quick Start

const calcufly = require('calcufly-formulas');

// Calculate mortgage payment
const payment = calcufly.calculateMortgage(300000, 4.5, 30);
console.log(`Monthly payment: $${payment}`);

// Calculate BMI
const bmi = calcufly.calculateBMI(75, 180);
console.log(`BMI: ${bmi}`);

// Convert units
const feet = calcufly.lengthConversions.metersToFeet(10);
console.log(`10 meters = ${feet} feet`);

Features

💰 Mortgage & Loan Calculators

Calculate mortgage payments, total interest, and amortization schedules.

Online Tools:

// Calculate monthly mortgage payment
const payment = calcufly.calculateMortgage(300000, 4.5, 30);
// Calculate total interest paid
const interest = calcufly.calculateTotalInterest(300000, 4.5, 30);

🏥 Health & Fitness Calculators

BMI, BMR, calorie needs, and more health metrics.

Online Tools:

// Calculate BMI
const bmi = calcufly.calculateBMI(75, 180); // weight in kg, height in cm

// Calculate BMR
const bmr = calcufly.calculateBMR(75, 180, 30, 'male');

💵 Financial Calculators

Investment returns, compound interest, retirement planning, and more.

Online Tools:

// Calculate compound interest
const investment = calcufly.calculateCompoundInterest(10000, 7, 10, 12);
console.log(`Final amount: $${investment.finalAmount}`);

// Calculate simple interest
const simple = calcufly.calculateSimpleInterest(5000, 5, 3);

🔄 Unit Converters

Convert between different units of measurement.

Online Tools:

// Length conversions
const feet = calcufly.lengthConversions.metersToFeet(10);
const km = calcufly.lengthConversions.milesToKilometers(100);

// Weight conversions
const kg = calcufly.weightConversions.poundsToKilograms(150);

// Temperature conversions
const fahrenheit = calcufly.temperatureConversions.celsiusToFahrenheit(25);

📐 Geometry & Math Calculators

Calculate areas, volumes, and geometric properties.

Online Tools:

// Calculate areas
const rectArea = calcufly.areaCalculations.rectangle(10, 5);
const circleArea = calcufly.areaCalculations.circle(7);

// Calculate volumes
const sphereVol = calcufly.volumeCalculations.sphere(5);
const cylinderVol = calcufly.volumeCalculations.cylinder(3, 10);

📊 Percentage Calculators

Percentage calculations, changes, increases, and decreases.

Online Tools:

// Calculate percentage of a number
const result = calcufly.percentageOf(20, 500); // 20% of 500 = 100

// Calculate percentage change
const change = calcufly.percentageChange(100, 150); // 50% increase

// What percentage is X of Y
const percent = calcufly.whatPercentage(25, 200); // 12.5%

📈 Statistics Calculators

Mean, median, standard deviation, and statistical analysis.

Online Tools:

const numbers = [10, 20, 30, 40, 50];

const mean = calcufly.calculateMean(numbers);
const median = calcufly.calculateMedian(numbers);
const stdDev = calcufly.calculateStandardDeviation(numbers);

📅 Date & Time Calculators

Age calculation, date differences, and time calculations.

Online Tools:

// Calculate age
const age = calcufly.calculateAge('1990-05-15');

// Days between dates
const days = calcufly.daysBetween('2024-01-01', '2024-12-31');

Why CalcuFly?

  • Accurate: All formulas are mathematically verified
  • Fast: Optimized for performance
  • Simple: Clean, intuitive API
  • Complete: Covers most common calculation needs
  • Well-tested: Thoroughly tested formulas
  • Zero dependencies: No external dependencies

More Calculators

This library provides the formulas, but for a complete calculator experience with visual interfaces, input validation, and detailed results, visit CalcuFly.com:

Popular Calculators:

Additional Tools:

License

MIT License - feel free to use in your projects!

Links


Made with ❤️ by the CalcuFly team. Visit CalcuFly.com for more calculators!