A small Node.js CLI that prints statistics about a given number.
Usage
Run with npm script:
npm run dev -- 42
Or directly:
node src/index.js 3.14
Features
- Detects integer vs float
- Positive / negative / zero
- Even / odd (integers)
- Factors and prime factors
- Prime test (integers)
- Classification: perfect / abundant / deficient
- Digit statistics