Year Range. Turn messy date ranges into clean start and end years.

npmjs.org/package/yearrange

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

January 2024
  • Handle born and died dates.
  • Better handle open-ended ranges.
December 2023
  • Allow for no spaces between year dashes.
  • Fix another wide hyphen.
  • Handle more year ranges with characters in-between.
  • Remove extra console.log.
  • Fix some day month year format.
  • v0.0.8
  • Fix up parsing of months, and better handle wide dashes.
November 2023
  • Bump to 0.0.7.
  • Fix some bugs with decade matching, Meiji period dates, added Reiwa, …
  • Update deps.
November 2015
  • Bump to v0.0.5.
July 2015
  • Fix 'cent' style centuries.
June 2015
  • Handle decade offsets after the date range.
  • Support decade ranges.
  • Don't require a trailing s on the decade ranges.
  • Fix up malformed quotes.
  • Add in mid to late and early to mid.
  • Fix some more test cases.