Registry / testing / number-formatter-test

number-formatter-test

JSON →
library0.0.1jsnpmunverified

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-test
INSTALL
IMPORT
SIG · NUMBER-FORMATTER-T
N
number-formatter-test
testingjavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

numberFormatter
import { numberFormatter } from 'number-formatter-test'
import numberFormatter from 'number-formatter-test'
The package exports the function as a named export, not default. Use named import syntax.
numberFormatter
const { numberFormatter } = require('number-formatter-test')
CommonJS destructured require works for Node.js >=4.2.4.

Import the numberFormatter function and format a number with commas. The function takes a number and returns a formatted string.

import { numberFormatter } from 'number-formatter-test'; const formatted = numberFormatter(1234567.89); console.log(formatted); // Output: 1,234,567.89
Debug
Known issues
gotchaThe package is at version 0.0.1 and is not stable. It may have bugs or missing features.
fix
For production, consider using Intl.NumberFormat or a well-maintained library like Numeral.js.
affects: 0.0.1
Errors
Common errors & fixes
TypeError: numberFormatter is not a function
Attempting to import the function as default export instead of named export.
fix
Use import { numberFormatter } from 'number-formatter-test' or const { numberFormatter } = require('number-formatter-test').
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
Resources
number-formatter-test — npm install number-formatter-test · libregistry