Skip to content

About

Zero-dependency CLI & offline dataset to check personal item, carry-on, and 62 linear inch checked luggage dimensions across 161 verified airlines (fitsbag.shop)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fitsbag-cli

Zero-dependency command-line tool and offline dataset to check personal item, carry-on, and 62 linear inch checked bag dimensions across 161 verified airlines — powered by FitsBag.

  • Offline-ready & fast: Ships with verified airline rules (data/airlines.json, updated 2026-11-30) — no API keys, no login, no network required.
  • Zero npm dependencies: Pure Node.js (>= 18) ESM.
  • Exact unit matching: Compares in inches when you enter inches and centimeters when you enter centimeters, so exact printed airline limits (like Avelo 17 × 13 × 9 in) never fail due to rounding.
  • Soft-sided bag tolerance: Optional --soft flag flags single-edge overages ≤ 1.0 in as soft-bag squeezes while keeping strict pass/fail accurate.
  • Scriptable: Add --json to any command for shell scripts, travel automation, or gear catalogs.

Quick Start

git clone https://github.com/bwdeng1/fitsbag-cli.git
cd fitsbag-cli

# Check a personal item against all airlines
node bin/fitsbag.mjs check 18 14 8 --mode personal-item

# Check a slightly packed backpack against Frontier with soft-bag squeeze hint
node bin/fitsbag.mjs check 18.8 14 8 --airline F9 --soft

# Check a standard cabin roller across verified airlines
node bin/fitsbag.mjs check 22 14 9 --mode carry-on --limit 15

# Calculate 62 linear inches for a checked suitcase
node bin/fitsbag.mjs linear 26 18 12 --unit in

# Inspect one airline's official personal item, carry-on, checked & gate fee notes
node bin/fitsbag.mjs airline XP
node bin/fitsbag.mjs airline G4

# Machine-readable JSON output
node bin/fitsbag.mjs check 17 13 9 --airline XP --json

Or link globally from your local clone:

npm link
fitsbag check 18 14 8 --airline F9

Example Output

Personal Item Check (fitsbag check 18.8 14 8 --airline F9 --soft)

FitsBag Check — 18.8 × 14 × 8 in | mode: personal-item | soft-sided ON
Dataset: 2026-11-30 | Fits: 0/1 | Soft squeeze: 1 | Over: 1

IATA  Airline                 Status                  Official Limit
----------------------------------------------------------------------------
F9    Frontier Airlines       SOFT SQUEEZE (+0.8 in)  18 × 14 × 8 in

2D Blueprint Sizer: https://fitsbag.shop/frontier-bag-sizer?h=18.8&w=14&d=8&u=in&m=personal-item

Linear Inches Calculator (fitsbag linear 26 18 12)

Linear Dimensions: 56.0 in (142.2 cm)
  45 in Cabin rule:    OVER (+11.0 in)
  62 in Checked rule:  FITS
  80 in Allegiant rule: FITS

Interactive calculator: https://fitsbag.shop/linear-inches-calculator

Interactive 2D Bag Sizers & Web Calculators

Prefer a visual 2D engineering blueprint sizer box with live gate fee notes and one-tap bag presets? Use the free web tools on FitsBag:

Testing

npm test

License

MIT — see LICENSE.

About

Zero-dependency CLI & offline dataset to check personal item, carry-on, and 62 linear inch checked luggage dimensions across 161 verified airlines (fitsbag.shop)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages