| Crates.io | nhs-number-replacer-cli |
| lib.rs | nhs-number-replacer-cli |
| version | 0.2.0 |
| created_at | 2025-06-12 20:18:51.48646+00 |
| updated_at | 2025-06-23 12:27:58.508548+00 |
| description | National Health Service (NHS) number replacer command line interface (CLI) for NHS England, NHS Wales, NHS Isle of Man. |
| homepage | |
| repository | https://github.com/GIG-Cymru-NHS-Wales/nhs-number-replacer-cli-using-rust/ |
| max_upload_size | |
| id | 1710347 |
| size | 20,913 |
National Health Service (NHS) Number replacer command line interface (CLI).
This program does these steps:
Read each line from standard input.
Match a regex pattern that is essentially "### ### ####".
Replace the match with a NHS Number that is a testable random sample i.e. in the NHS Number reserved range of "999 000 0000" to "999 999 9999".
Output each line to standard output.
Run:
echo "111 111 1111" | nhs-number-replacer-cli
Output:
999 265 6328