1.0.1 • Published 4 years ago

age-by-birthdate v1.0.1

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

Build Status

Overview

A simple NPM package for getting the age by selected birthdate.

Installation

npm i age-by-birthdate --save

Setup & Basic Usage

const getAge = require('age-by-birthdate')

console.log(getAge('8/17/1981'))

// 38

Formats

Available formatsSample
ISO Date FormatgetAge('1981-08-17')
Short Date FormatgetAge('08/17/1981')
Long Date FormatgetAge('Aug 17 1981')
Full Date FormatgetAge('August 17, 1981')

Contribute

Feel free to clone or fork this project: https://github.com/deanilvincent/age-by-birthdate.git

Contributions & pull requests are welcome!

I'll be glad if you give this project a ★ on Github :))

License

This project is licensed under the MIT License - see the LICENSE.md file for details.