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

@toolsnap/salary-calculator

v1.0.0

Published

Free online Salary Calculator. Calculate annual, monthly, biweekly, and hourly salary with tax estimates and overtime.

Downloads

80

Readme

Salary Calculator

A lightweight JavaScript library for salary conversions, tax estimates, and overtime calculations. Supports annual, monthly, biweekly, weekly, and hourly conversions with 2024 US federal tax bracket estimates.

Try it online: RiseTop Salary Calculator — a free, no-signup tool to calculate your salary in different pay periods with tax estimates.

Installation

npm install @toolsnap/salary-calculator

Usage

Quick Salary Breakdown

const { salaryBreakdown } = require('@toolsnap/salary-calculator');

// Get a full breakdown from annual salary
const breakdown = salaryBreakdown(75000, 'annual');
console.log(breakdown);
// {
//   annual: 75000,
//   monthly: 6250,
//   biweekly: 2884.62,
//   weekly: 1442.31,
//   hourly: 36.06,
//   daily: 288.46,
//   federalTax: 12020.5,
//   socialSecurity: 4650,
//   medicare: 1087.5,
//   totalDeductions: 17758,
//   netAnnual: 57242,
//   netMonthly: 4770.17,
//   effectiveRate: 23.68
// }

// Or from hourly rate
const fromHourly = salaryBreakdown(35, 'hourly');

Unit Conversions

const {
  annualToMonthly,
  annualToHourly,
  hourlyToAnnual,
  monthlyToHourly
} = require('@toolsnap/salary-calculator');

annualToMonthly(90000);   // 7500
annualToHourly(90000);    // 43.27
hourlyToAnnual(45);       // 93600
monthlyToHourly(6000);    // 34.62

Overtime Calculation

const { calculateOvertimeDetailed } = require('@toolsnap/salary-calculator');

const overtime = calculateOvertimeDetailed(25, 50);
console.log(overtime);
// {
//   regularPay: 1000,
//   overtimePay: 375,
//   totalPay: 1375,
//   overtimeHours: 10
// }

Tax Estimation

const { estimateFederalTax, calculateTakeHome } = require('@toolsnap/salary-calculator');

// Federal tax with bracket breakdown
const tax = estimateFederalTax(100000);
console.log(tax.effectiveRate);  // 14.28
console.log(tax.marginalRate);   // 22

// Full take-home calculation (federal + FICA)
const takeHome = calculateTakeHome(100000, 'single');
console.log(takeHome.netMonthly);  // 6338.46

API Reference

Conversion Functions

| Function | Description | |---|---| | annualToMonthly(annual) | Annual → Monthly (÷12) | | annualToBiweekly(annual) | Annual → Biweekly (÷26) | | annualToWeekly(annual) | Annual → Weekly (÷52) | | annualToHourly(annual, [hoursPerWeek=40]) | Annual → Hourly | | hourlyToAnnual(hourly, [hoursPerWeek=40]) | Hourly → Annual | | hourlyToMonthly(hourly, [hoursPerWeek=40]) | Hourly → Monthly | | monthlyToAnnual(monthly) | Monthly → Annual | | monthlyToHourly(monthly, [hoursPerWeek=40]) | Monthly → Hourly |

Calculation Functions

| Function | Description | |---|---| | salaryBreakdown(value, unit, [hoursPerWeek]) | Full salary breakdown with tax estimates | | calculateOvertimePay(hourlyRate, totalHours) | Weekly pay with 1.5x overtime | | calculateOvertimeDetailed(hourlyRate, totalHours, [multiplier]) | Detailed overtime breakdown | | estimateFederalTax(income, [filingStatus]) | Federal tax with bracket details | | calculateTakeHome(income, [filingStatus]) | Net pay after federal tax + FICA |

Related Tools

License

MIT