A JavaScript library that formats data (numbers, dates, etc.) in Excel-like styles. Current stable version is 2.0.1. It provides number formatting (decimal, fractional, percent), date formatting (elapsed time, AM/PM), predefined Excel formats, and localization support. The library is lightweight, supports CommonJS, AMD, and browser environments, and allows custom locale definitions and UTC offsets.
npm install excel-style-dataformatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes DataFormatter with Russian locale, formats a number as currency, and logs the result.
Convert numbers to string: dataFormatter.format(String(99), 'Number', 'Currency')
Update imports: `import ru from 'excel-style-dataformatter/lib/ru'`
Use `dataFormatter.setUTCOffset(offset)` instead of passing UTCOffset in constructor.
Access the global correctly: `new window.DataFormatter({ locales: [window.DataFormatter_ru] })`Use `import DataFormatter from 'excel-style-dataformatter'` instead of `import { DataFormatter } from 'excel-style-dataformatter'`Use `import ru from 'excel-style-dataformatter/lib/ru'`
No dependency data recorded yet.