number-formatter-test is a minimal npm package for formatting numbers with commas. At version 0.0.1, it provides a single function to convert plain numbers into locale-agnostic comma-separated strings. It is a lightweight utility with no dependencies, suitable for Node.js >=4.2.4. Compared to libraries like Numeral.js or Intl.NumberFormat, it offers no customization, localization, or formatting options. This package appears to be a test or example package, not intended for production use. There are no releases beyond 0.0.1; the project is not actively maintained.
npm install number-formatter-testNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Import the numberFormatter function and format a number with commas. The function takes a number and returns a formatted string.
For production, consider using Intl.NumberFormat or a well-maintained library like Numeral.js.
Use import { numberFormatter } from 'number-formatter-test' or const { numberFormatter } = require('number-formatter-test').No dependency data recorded yet.