Entrepreneur, Musician, Traveler, Founder of Open Exchange Rates

My weekend project: accounting.js

accounting.js is a tiny JavaScript library for number, money and currency formatting, with optional excel-style column rendering (to line up symbols and decimals). It’s lightweight, fully localisable and has zero dependencies.

I decided to take the couple of number formatting functions I posted last week and turn them into a library, with the key addition being the excel-style column formatting, which takes an array of values and adds padding between the currency symbol and the number, so that the symbols and decimal places are aligned:

Thanks for the very handy library. Easy to use, and easy to install and set-up defaults. I can tell you didn’t just make something for yourself, but put in the extra time needed to make it quickly usable by others. This was thoughtful and generous of you. Thanks.