A utility library for formatting dates, numbers, and strings with localization support. Current version 0.8.15 provides pattern-based formatting for dates (e.g., yyyy-MM-dd), numbers (e.g., ,0.00), and strings (with alignment and pluralization). It works both in Node.js and browser environments. Key differentiators include integration with MaskJS template engine, culture/language support for internationalization, and a unified API for multiple formatting tasks. Compatible with CommonJS and global browser usage. Last updated several years ago and shows low maintenance cadence.
npm install atma-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates date formatting with custom pattern, number formatting with decimal places, and string interpolation with placeholders.
Consider using dayjs, date-fns, or numeral for actively maintained alternatives.
Use CommonJS require('atma-formatter') or configure bundler properly.Call Formatter(value, pattern) directly.
Follow documentation patterns carefully (e.g., #d for 1-31, dd for 01-31).
Use const Formatter = require('atma-formatter'); instead of import.In browser: include the script via <script src="path/to/atma-formatter.js"></script>. In Node: require('atma-formatter').Use the standalone format function: Formatter(value, pattern) instead.
No dependency data recorded yet.