Releases: lukeed/fromnow
Releases · lukeed/fromnow
v3.0.1
v3.0.0
Breaking
- Remove
opts.ago
option - Remove segments with
0
/empty values by default
Features
-
Add
opts.zero
flag to re-include0
/empty values: 3f421a5 -
Add
opts.suffix
flag to append "ago" or "from now" to output: 7d4b80fThank you to @finchMFG for prompting this change!
Patches
-
Fix pluralization: e3572d6
// Before: "0 month, 1 day, 2 minutes" // After: "0 months, 1 day, 2 minutes"