age-by-birthdate
A simple NPM package for getting the age by selected birthdate.
Last updated 4 months ago by dvincent333 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install age-by-birthdate 
SYNC missed versions from official npm registry.

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 formats Sample
ISO Date Format getAge('1981-08-17')
Short Date Format getAge('08/17/1981')
Long Date Format getAge('Aug 17 1981')
Full Date Format getAge('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.

Current Tags

  • 1.0.1                                ...           latest (4 months ago)

2 Versions

  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |