You can use Numerals in the browser and in Node.js. Create an instance of a numeral, Numeral takes numbers or strings that it trys to convert into a number. Numbers can be formatted to look like currency, percentages, times, or even plain old numbers with decimal places, thousands, and abbreviations. And you can always create a custom format. Set a default format so you can use .format() without a string. The default format to '0,0'. Set a custom output when formatting numerals with a value of 0 or null. Adding your own custom formats is as easy as adding a locale. Numeral.js, while less complex, was inspired by and heavily borrowed from Moment.js Formats now exist in their own files and act more or less as plugins. Check out the bytes format for an example of how to create one. When naming locale files use the ISO 639-1 language codes supplemented by ISO 3166-1 country codes when necessary.

Features

  • Use it in the browser and in Node.js
  • Create an instance of a numeral, Numeral takes numbers or strings that it trys to convert into a number
  • Numbers can be formatted to look like currency, percentages, times, or even plain old numbers with decimal places
  • Find the difference between your numeral object and a value
  • Go ahead and clone any numeral object while you're at it
  • Set a default format so you can use .format() without a string

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Numeral.js

Numeral.js Web Site

Other Useful Business Software
Melis Platform is an enterprise-grade Low Code Platform simplifying app creation, management, and delivery. Icon
Melis Platform is an enterprise-grade Low Code Platform simplifying app creation, management, and delivery.

Ideal for websites, apps, e-commerce, CRMs, and more

Melis is a new generation of Content Management System and eCommerce platform to achieve and manage websites from a single web interface easy to use while offering the best of open source technology.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Numeral.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Data Formats Software, JavaScript Libraries

Registered

2021-06-29