@ende/chronver/is-chronver

ende add jsr:@ende/chronver

Version 2026.10.17 on JSR.

Exports

  • isChronVer — Checks to see if value is a valid ChronVer object: one that format accepts and that parse reads back unchanged. The year must be from 1 to 9999, the date a real calendar date and the changeset a non-negative safe integer. The feature, if present, may only contain letters, digits and hyphens (not only hyphens), can't be `break`, and can't be combined with `isBreaking`.