npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

gdpr-age-of-majority

1.0.3 • Public • Published

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)}`);

install

npm i gdpr-age-of-majority

Downloadsweekly downloads

9

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability