{"id":41641,"library":"number-formatter-test","title":"number-formatter-test","description":"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.","status":"active","version":"0.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/zhweeant/number-formatter","tags":["javascript","number-formatter"],"install":[{"cmd":"npm install number-formatter-test","lang":"bash","label":"npm"},{"cmd":"yarn add number-formatter-test","lang":"bash","label":"yarn"},{"cmd":"pnpm add number-formatter-test","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package exports the function as a named export, not default. Use named import syntax.","wrong":"import numberFormatter from 'number-formatter-test'","symbol":"numberFormatter","correct":"import { numberFormatter } from 'number-formatter-test'"},{"note":"CommonJS destructured require works for Node.js >=4.2.4.","symbol":"numberFormatter","correct":"const { numberFormatter } = require('number-formatter-test')"}],"quickstart":{"code":"import { numberFormatter } from 'number-formatter-test';\n\nconst formatted = numberFormatter(1234567.89);\nconsole.log(formatted); // Output: 1,234,567.89\n","lang":"typescript","description":"Import the numberFormatter function and format a number with commas. The function takes a number and returns a formatted string."},"warnings":[{"fix":"For production, consider using Intl.NumberFormat or a well-maintained library like Numeral.js.","message":"The package is at version 0.0.1 and is not stable. It may have bugs or missing features.","severity":"gotcha","affected_versions":"0.0.1"}],"env_vars":null,"search_vec":"'0.0.1':21,86 '4.2.4':50 'activ':91 'agnost':34 'appear':68 'beyond':85 'comma':18,36 'comma-separ':35 'compar':51 'convert':28 'custom':61 'depend':46 'exampl':74 'format':15,64 'formatt':3,7,96 'function':26 'intend':77 'intl.numberformat':57 'javascript':93 'librari':53 'lightweight':42 'like':54 'local':33,62 'locale-agnost':32 'maintain':92 'minim':11 'node.js':49 'npm':12 'number':2,6,16,30,95 'number-formatt':94 'number-formatter-test':1,5 'numeral.js':55 'offer':59 'option':65 'packag':13,67,75 'plain':29 'product':79 'project':88 'provid':23 'releas':84 'separ':37 'singl':25 'string':38 'suitabl':47 'test':4,8,72 'use':80 'util':43 'version':20","created_at":"2026-06-04T18:53:23.631215+00:00","updated_at":"2026-06-04T18:53:23.631215+00:00","problems":[{"fix":"Use import { numberFormatter } from 'number-formatter-test' or const { numberFormatter } = require('number-formatter-test').","cause":"Attempting to import the function as default export instead of named export.","error":"TypeError: numberFormatter is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/zhweeant/number-formatter#readme","github":"https://github.com/zhweeant/number-formatter","docs":null,"changelog":null,"pypi":null,"npm":"number-formatter-test","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}