min-wage
Version:
Scrape department of labor minimum wages for all US states and territories!
44 lines (29 loc) β’ 1.13 kB
Markdown
# πΈ State Minimum Wage Scraper
Scrapes official U.S. minimum wage data straight from [dol.gov](https://www.dol.gov/agencies/whd/minimum-wage/state) β because everyone deserves to know what theyβre worth. π«‘
## π¦ What is this?
This is a lightweight Node.js package that:
- Scrapes up-to-date state minimum wages π΅
- Lets you query wages by abbreviation (`TX`) or full state name (`Texas`)
- Works great for payroll systems, dashboards, job boards, or fun weekend side projects where you're obsessing about state labor data (we don't judge)
## β¨ Features
β
Real-time scraping from DOL
β
Supports abbreviations or full state names
β
Fun to use, minimal to set up
β
Actually returns cents (not just dollars, like some savage)
## π Usage
### Install
```bash
npm install state-minimum-wage
```
### Basic Usage
```js
const { getWages, getWageByState } = require('state-minimum-wage');
// Get all wages by state abbreviation
const allWages = await getWages();
console.log(allWages);
// Get wage by state name
const nyWage = await getWageByState('New York');
console.log(nyWage);