adamwdraper/numeral-js

A javascript library for formatting and manipulating numbers.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 52 minutes ago
Added to GitGenius on September 6th, 2026
Created on October 1st, 2012
Open Issues & Pull Requests: 345 (+0)
GitHub issues: Enabled
Number of forks: 907
Total Stargazers: 9,703 (+0)
Total Subscribers: 146 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 53.0 days
Mean response time: 155.3 days
90th percentile: 406.7 days
Tracked items: 4

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 948 days
Stale 30+ days: 3
Stale 90+ days: 3

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Numeral.js is a JavaScript library for formatting and manipulating numbers.

The library addresses the need to display numbers in human-readable formats across different locales and use cases. It works by providing a chainable API where developers pass a number to the numeral function and apply formatting methods to produce strings suitable for display. The tool handles currency symbols, percentage scaling, abbreviations for large numbers, byte sizes, and exponential notation, with support for multiple locales and custom format definitions.

Developers should choose this tool when building applications that require consistent number formatting across different regions or when displaying financial data, file sizes, or other numeric values to end users. It suits projects ranging from simple web applications to dashboards that need to respect locale-specific conventions for decimal separators and currency representation. The library is available through standard package managers and CDN distribution, making it straightforward to integrate into existing projects.

The project maintains active development with a structured contribution process requiring tests for all changes. Formats are organized as modular, plugin-like files that can serve as templates for creating custom formats. Locale support is standardized using ISO language and country codes, with a requirement that all locale translations include corresponding unit tests before acceptance. The codebase uses a develop branch workflow where all pull requests must target the develop branch and pass the test suite before compilation and minification.