Skip to content

kszongic/pangram-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@kszongic/pangram-cli

npm version license

Check if text is a pangram — a sentence containing every letter of the alphabet (A–Z). Zero dependencies.

Install

npm install -g @kszongic/pangram-cli

Usage

# Check a sentence
pangram "The quick brown fox jumps over the lazy dog"
# ✓ Pangram! All 26 letters present.

pangram "Hello world"
# ✗ Not a pangram. 7/26 letters found, missing 19.

# Show missing letters
pangram --missing "Hello world"
# Missing (19): a b c f g i j k n p q s t u v x y z

# Quiet mode (exit code only)
pangram -q "The quick brown fox jumps over the lazy dog" && echo "Pangram!"

# Pipe from stdin
echo "Pack my box with five dozen liquor jugs" | pangram

Options

Flag Description
-m, --missing Show missing letters instead of pass/fail
-q, --quiet Exit code only (0 = pangram, 1 = not)
-h, --help Show help
-v, --version Show version

Exit Codes

  • 0 — Input is a pangram
  • 1 — Input is not a pangram

License

MIT © kszongic

About

Check if text is a pangram from the command line. Zero deps.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors