Skip to content

Commit

Permalink
Add valid output
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Mar 23, 2023
1 parent be117b1 commit 3a8a2c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/personnummer
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const main = () => {

try {
const pnr = Personnummer.parse(argv[0]);
console.log(` Short format: ${pnr.format()}
console.log(` Valid: true
Short format: ${pnr.format()}
Long format: ${pnr.format(true)}
Age: ${pnr.getAge()}
Sex: ${pnr.isMale() ? "male" : "female"}
Expand Down

0 comments on commit 3a8a2c9

Please # to comment.