date-of-birth-generator

1.2.0 • Public • Published

Generate random date of birth or date of birth with specific age

To make use of this function, install our package - date-of-birth-generator inside your function with below command,

npm i date-of-birth-generator

Next step is to import function into your script with below command,

const newDate = require('date-of-birth-generator')

To get date with specific age, pass the age as number

const newDate = require('date-of-birth-generator')
let dob = newDate.randomDate(23)

To get some random date, you need not pass any parameter

const newDate = require('date-of-birth-generator')
let dob = newDate.randomDate()

Readme

Keywords

none

Package Sidebar

Install

npm i date-of-birth-generator

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

4.76 kB

Total Files

3

Last publish

Collaborators

  • siddhu_m