A collection of string formatting utility functions for React components in the uxcore ecosystem. Version 0.1.13, last updated in 2016, appears to be in maintenance mode with no recent releases. Provides methods for date formatting, money (number) formatting with separators and decimal places, Chinese mobile number formatting, and credit card number formatting. Lightweight with no dependencies. Primarily used internally within uxcore projects, not a general-purpose formatter like date-fns or numeral.js.
npm install uxcore-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of all four formatters: date, money, cnmobile, and card.
Convert number to string: Formatter.money(String(num), ',', 2)
Refer to source code for exact token mapping (likely YYYY, MM, DD, HH, mm, ss).
Consider migrating to modern alternatives like date-fns for date formatting and numeral.js for number formatting.
Ensure the phone number includes the '+' sign and country code.
Use default import: import Formatter from 'uxcore-formatter'; then Formatter.date().
Pass comma as second argument: Formatter.money('12345.6789', ',') yields '12,345.6789'.Run: npm install uxcore-formatter
No dependency data recorded yet.