I am looking for a JS library/utility/function where you give it num of month and it returns the human readable version of it.
I have almost done it in Vanilla JS but now I figure out there are a lot of edge cases that I do not want to re-invent the wheel.
Example
func(3) => "3 Months"
func(1) => "1 Month" // singular
func(0.1) => "1 Week"
func(0.25) => "2 Weeks"
func(13) => "1 year and 1 month"
func(14) => "1 year and 2 months"
func(14.25) => "1 year, 2 months and two weeks"
.
..
...etc
Problem Statement: I don't want to re-invent the wheel and see if there are any library that is currently doing date conversion as above.