gas-price-cli
v1.0.6
Published
CLI to fetch and compare real-time local gas prices by zip code
Maintainers
Readme
gas-price-cli
CLI to fetch and compare real-time local gas prices by zip code.
Features
- Zero Dependencies: Instant execution via Node's native APIs.
- Auto-Sorted: Ranks stations from cheapest to most expensive.
- Multi-Fuel Support: Filter by Regular, Midgrade, Premium, and Diesel.
- Freshness Indicator: Shows when each price was last updated.
Usage
Run directly with npx (no install required):
npx gas-price-cli [zipcode] [options]
Filtering by Fuel Type
By default, the CLI shows Regular fuel prices. Use the -f or --fuel flag to filter by a specific grade:
| Fuel Type | Command | | --- | --- | | Regular (Default) | npx gas-price-cli 36344 | | Midgrade | npx gas-price-cli 36344 -f midgrade | | Premium | npx gas-price-cli 36344 -f premium | | Diesel | npx gas-price-cli 36344 -f diesel |
Options
| Option | Alias | Description | Default | | --- | --- | --- | --- | | --fuel | -f | Select fuel type (regular, midgrade, premium, diesel) | regular | | --help | -h | Show usage guide and available options | |
License
MIT
