General-purpose formatting library for Chinese developers, providing date and amount formatting utilities. Current stable version: 2.0.0. Release cadence: unknown, last updated years ago. Key differentiators: built for CommonJS (require), supports Node >=4.0.0, no dependencies. Functionality overlaps with libraries like moment.js or numeral.js but is much simpler.
npm install anima-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of dateFormat and amountFormat with various options.
Always provide all four arguments: amount, useGrouping, decimalPlaces, showCurrencySymbol.
Use ISOString or a more flexible library like moment.js if custom formats are needed.
Upgrade Node to version 4 or higher.
const Formatter = require('anima-formatter');Pass a Date object: new Date('2014-11-12').Provide all four arguments: amount, true/false for grouping, number of decimals, true/false for currency symbol.
No dependency data recorded yet.