1.0.5 • Published 7 years ago

age-in-words v1.0.5

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
7 years ago

Age in Words

pipeline status

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 enabled

Example

  const ageInWords = import 'age-in-words';
  const age = ageInWords('2016-10-12');
  console.log(age); //18 months old

Using https://github.com/lukeed/fromNow as a starting point.

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago