2 unstable releases
Uses new Rust 2024
new 0.2.0 | Jun 23, 2025 |
---|---|
0.1.2 | Jun 12, 2025 |
#22 in Science
231 downloads per month
7KB
NHS Number replacer CLI
National Health Service (NHS) Number replacer command line interface (CLI).
Steps
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.
Example
Run:
echo "111 111 1111" | nhs-number-replacer-cli
Output:
999 265 6328
Dependencies
~2.7–4.5MB
~79K SLoC