@puthnith/pin-cli

1.0.1 • Public • Published

@puthnith/pin-cli

NPM Version NPM Downloads

Generate Swedish personnummer (personal identity number)

Install

npm install -g @puthnith/pin-cli

Usage

λ pin --help

Options:
  -g, --gender   Specify gender otherwise random     [choices: "male", "female"]
  -f, --format   Specify format otherwise short
                                   [choices: "short", "long"] [default: "short"]
  -c, --count    Specify count otherwise 1 (max: 50)       [number] [default: 1]
  -v, --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Examples:
  pin // 320611-5366
  pin 2020-01-01 // 200101-4451
  pin 2020-01-01 --gender female --format long // 202001010681

Example

Generate 5 pins for 2020-01-01

λ pin --count 5 2020-01-01

200101-6621
200101-5326
200101-0509
200101-5763
200101-0657

Package Sidebar

Install

npm i @puthnith/pin-cli

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.29 kB

Total Files

5

Last publish

Collaborators

  • puthnith