Find Swedish personal identity numbers (personnummer) in your code
Due to GDPR it's more important than ever to not have personal information outside of your production environment. This project aims to help people find and fix Swedish personal identity numbers (personnummer) in code (or any textfiles)
If your only need to do this once you could run it with npx
. It takes a bit longer but doens't require an install command (it installs it before each run and removes it after)
$ npx pnr-scanner .
If you intend to run this package more than once I suggest you install it globally since this will be alot faster. The downside to this is that you have to update it yourself
$ npm install --global pnr-scanner
$ pnr-scanner .
Usage: pnr-scanner <directories or files> [options]
Options:
-V, --version output the version number
-v, --verbose Enable verbose logging
-p, --pattern <pattern> Glob pattern default is !(node_modules){,/**}
-h, --help output usage information