@bharathbhsp/say-hi
v1.0.3
Published
CLI that prints a random say-hi greeting
Readme
say-hi
CLI that prints a random "say hi" greeting. No config, no network — just run and get a friendly line.
Install
npm install -g @bharathbhsp/say-hiOr run without installing:
npx @bharathbhsp/say-hiFrom this repo:
node bin/say-hi.js
# or
npm startUsage
say-hi # print one random greeting
say-hi --seed 42 # same seed => same output (reproducible)Options
| Option | Description |
| ---------- | ----------- |
| --seed N | Use integer seed for reproducible output (e.g. tests, demos). |
Adding phrases
Edit data/phrases.json: it’s a JSON array of strings. Add or remove entries; the CLI picks one at random each run.
Tests
npm testUses a fixed seed to assert deterministic behavior and valid picks.
Documentation
- Approach & design — Goal, scope, and design (no code).
- Usage — Install, options, and customization.
- Publishing to npm — How to publish this package to npm.
License
MIT
