numberfmt – native numeric formatting using a text pattern


JS provides powerful number formatting with the standard built-in object Intl.NumberFormat, but we found its API a little verbose and hard to grasp. We took inspiration from older libraries like numbro.js and numeral.js and built a string based pattern for interacting with Intl.NumberFormat.

Author: Shantun Parmar

Leave a Reply

Your email address will not be published.