Numerify is a JavaScript number formatting library (version 1.2.9) that provides flexible formatting patterns similar to Numeral.js. It supports thousands separators, decimals, percentages, abbreviations (k/m/b/t), and custom rounding. The library is extensible via plugins (e.g., bytes, bps) and a registry for custom formats. It offers both ESM and CommonJS modules, and is actively maintained with weekly releases. Key differentiators include a minimal API surface, plugin architecture, and configurable options like zero/null formatting and abbreviation labels.
npm install numerifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic numeric formatting with separators, percentages, abbreviations, custom zero display, and a plugin registration (bytes).
Use 'require('numerify/lib/index.cjs.js')' instead of 'require('numerify')'.Prefer the ESM import 'import numerify from 'numerify'' in bundlers.
Ensure the registered object has a 'regexp' RegExp and a 'format(value, format, roundingFunction)' function.
Use format like '0b' or '0.0b' for byte formatting.
For CommonJS: const numerify = require('numerify/lib/index.cjs.js'). For ESM: use 'import numerify from 'numerify'' and ensure package.json has 'type': 'module' or .mjs extension.Use import numerify from 'numerify' (default import) instead of import { numerify } from 'numerify'.Ensure the script tag points to 'numerify/lib/index.umd.min.js' and is loaded before usage.
Ensure numerify is imported/loaded before calling numerify.register() or numerify.setOptions().
No dependency data recorded yet.