diff --git a/bin/personnummer b/bin/personnummer index ec22d8b..5ad2875 100644 --- a/bin/personnummer +++ b/bin/personnummer @@ -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"}