Formatting number, currency, date and time are trickier things to deal with in JavaScript. JavaScript provides a number of options from simple to complex that allows you to format and display numbers as currency. Regardless of which you use, however, the process is not as simple as it may first appear. So in this post we`ve gathered some best Javascript libraries with some handy methods for number, money, currency, phone number, date and time formatting.
Currency Converter
This is jQuery plugin that creates currency conversion widget. This widget is flexible customizable and easily integratable in any site working on different platforms. Your website visitors can convert currencies using latest exchange rates.
FormatJS
It is a modular collection of JavaScript libraries for internationalization that are focused on formatting numbers, dates, and strings for displaying to people.
Dinero
It makes it easy to create, calculate and format monetary values in JavaScript. You can perform arithmetic operations, extensively parse and format them, check for a number of things to make your own development process easier and safer.
Accounting
It is a tiny JavaScript library for number, money and currency formatting, with optional excel-style column rendering. It`s lightweight, fully localisable and has zero dependencies.
Currency
It was built to work around common floating point issues in javascript with a flexible api.
Numeral
A javascript library for formatting and manipulating numbers.
Walletjs
A little library to handle money amounts.
autoNumeric
It is a standalone library that provides live as-you-type formatting for international numbers and currencies.
CurrencyFormatter
It allows you to format numbers as currencies. It contains 155 currency definitions and 715 locale definitions out of the box. It handles unusually formatted currencies, such as t
Numbro
numbro is a Javascript library for converting, formatting, and manipulating all your numbers, in more than 30 languages.
Libphonenumber
A simpler and smaller rewrite of Google Android`s libphonenumber library: easy phone number parsing and formatting in javascript.
Moment
Parse, validate, manipulate, and display dates and times in JavaScript.
Timeago
It is a tiny library used to format date.
date-fns
It provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.
Datejs
It is an open source JavaScript Date library for parsing, formatting and processing.