1.5.0 • Published 5 months ago

nnid v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

NNID

Node.js CI

Replace norwegian and swedish identity numbers with fake ones to not expose real identities in your data. Both 'fødselsnummer' and 'd-nummer' are replaced.

The synthetically generated IDs will still pass validation of check digits. The synthetic IDs will have the birth date part set to an invalid date to ensure that they will never match a real identity.

Usage

To replace all valid NNIDs in the current directory (and subdirectories) with synthetic ones:

npx nnid

Options:

  • -r, --replace-invalid : Replace 11-digit numbers that do not qualify with any norwegian ID types with synthetic ones.
  • -d, --dir: Directory to search for numbers in. Defaults to current directory.
  • --swedish: Replace 12-digit numbers that are valid swedish personal numbers with synthetic ones.
  • --fake: Generate a random synthetic 'fødselsnummer'.
  • --fake-d: Generate a random synthetic 'd-number'.
  • --fake-swedish: Generate a random synthetic swedish personal number.
  • -v, --verbose: Verbose output.
1.5.0

5 months ago

1.4.0

6 months ago

1.2.1

6 months ago

1.1.1

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago