Skip to content

SpoonX/to-age

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-age

An extremely simple module that converts a date to an age.

$ toAge('1991-04-24'); // 24 (at time of writing)

Installing

npm i to-age --save

Usage

var toAge = require ('to-age');

// From an instance
toAge(new Date(1991, 4, 24));

// From a string
toAge('1991-04-24');

About

An extremely simple module that converts a date to an age.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors