1.0.3 • Published 7 years ago

gdpr-age-of-majority v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

About GDPR-AgeOfMajority

Validate whether an individual is an adult according to GDPR (eu rules).

Build Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code

Install

npm install gdpr-age-of-majority --save

Usage

'use strict';

const AgeOfMajority = require('gdpr-age-of-majority'); //Import validation function.

const birthDate = '1967-05-01'; //Sample birth date
const countryCode = 'IT'; //Italy 

console.log(`Is adult: ${AgeOfMajority.isAdult(birthDate, countryCode)}`);