fi-pin
v0.0.6
Published
Finnish Personal Identification Number validate + gender check
Downloads
15
Readme
Finnish Person ID check
const {isFemale, isMale, isValidPersonId} = require('fi-pin');
if (isValidPersonId('131052-308T')) {
console.log('male', isMale('131052-308T'));
console.log('female', isFemale('131052-308T'));
}
import {isFemale, isMale, isValidPersonId} from 'fi-pin';
if (isValidPersonId('131052-308T')) {
console.log('male', isMale('131052-308T'));
console.log('female', isFemale('131052-308T'));
}