the any* family

Micro, zero-dependency tools built on native Intl. No data files, no config — just one function each, in any locale.

scroll

anywhendates & times: Dates and times into localized strings and relative phrasing. Built on native Intl, no data files.

anywhen

Dates and times into localized strings and relative phrasing. Built on native Intl, no data files.

datesdatetimeformatrelative
dates & timesv1.0.2

you call

anywhen("2026-07-08", { mode: "relative" })

you get

 

anyamountmoney & numbers: Numbers, currency, and units into localized, human-readable strings. One function, three modes, any locale.

anyamount

Numbers, currency, and units into localized, human-readable strings. One function, three modes, any locale.

currencynumberformatunits
money & numbersv1.0.0

you call

anyamount(1234567)

you get

 

anymanylists: String arrays into localized lists — sort and join in any locale with the native list formatter.

anymany

String arrays into localized lists — sort and join in any locale with the native list formatter.

listslistformatsort
listsv1.0.1

you call

anymany(["a", "b", "c"])

you get

 

anyaroundnames & flags: Region, language, script, currency, and calendar codes into their localized names — decorated with country flags. Any Intl locale.

anyaround

Region, language, script, currency, and calendar codes into their localized names — decorated with country flags. Any Intl locale.

flagsdisplaynamesssr
names & flagsv0.1.0

you call

anyaround("US")

you get