1.0.5 • Published 8 years ago
age-in-words v1.0.5
Age in Words
Express age in words. Accepts birthdate as constructor.
Installation
  yarn add age-in-words
Usage
  const age = ageInWords(date, options);date (required):
- Format: 'RFC-822', 'MM/DD/YYY', YYYY/MM/DD'options (optional):
- `specialCases` (optional): default - true
   See specialCases.js for list of renames if enabledExample
  const ageInWords = import 'age-in-words';
  const age = ageInWords('2016-10-12');
  console.log(age); //18 months oldUsing https://github.com/lukeed/fromNow as a starting point.