Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Something to be aware is that there is a subtle difference between supporting the APIs and supporting appropriate data sets.

Specifically, the table lists Node 12 as supporting Intl, but critically, Node 12 defaults to being built with the `small-icu` dataset. This is not actually sufficient if, for example, you want to correctly format brazilian currency (among many other use cases). For that you want the `full-icu` data set, which can be configured via a env var. Node 14+, however, does thankfully come w/ full-icu by default.

This is also something to be aware also if you're looking at custom size-optimized docker images, since skimping on ICU is a "low-hanging" size optimization.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: