31294c903366e2a18e0cbfefcc51fdefd91a58b0f3e04ae60387e552e0ff4f06cc137f700c5a7a043d6e77587d4c979b7aa599d29249575420a4f93731df5b 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # [numbro](https://numbrojs.com/)
  2. [![Join the chat at https://gitter.im/foretagsplatsen/numbro](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/foretagsplatsen/numbro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
  3. A javascript library for formatting and manipulating numbers.
  4. [Website and documentation](http://foretagsplatsen.github.io/numbro)
  5. # Travis Build Status
  6. Master [![Build Status](https://travis-ci.org/foretagsplatsen/numbro.svg?branch=master)](https://travis-ci.org/foretagsplatsen/numbro)
  7. Develop [![Build Status](https://travis-ci.org/foretagsplatsen/numbro.svg?branch=develop)](https://travis-ci.org/foretagsplatsen/numbro)
  8. # NPM
  9. [![NPM](https://nodei.co/npm/numbro.png?downloads=true)](https://nodei.co/npm/numbro/)
  10. # Contributing
  11. Please submit all pull requests to the `develop` branch.
  12. 1. Fork the library
  13. 2. [Install grunt](http://gruntjs.com/getting-started#installing-the-cli)
  14. 3. Run `npm install` to install dependencies
  15. 4. Add your tests to the files in `/tests`
  16. 5. To test your tests, run `grunt test`
  17. 6. When all your tests are passing, submit a pull request to the `develop` branch.
  18. ### Languages
  19. Languages names follows the Microsoft culture name convention as found
  20. [here](https://msdn.microsoft.com/en-us/library/ee825488.aspx). If Microsoft does not have a code
  21. for the country/locale combination, use the format `lang-locale` where the language code is a 2
  22. letter abbreviation from the list of [ISO 639-1 language
  23. codes](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) and the `localecode` is from the list
  24. of [ISO 3166-1 country codes](http://en.wikipedia.org/wiki/ISO_3166-1)
  25. ### Language translations will not be merged without unit tests.
  26. See [the english unit tests](https://github.com/foretagsplatsen/numbro/blob/master/tests/languages/en-GB.js) for an example.
  27. # Changelog
  28. See [CHANGELOG.md](CHANGELOG.md).
  29. # Acknowledgements
  30. `numbro` is forked from [Adam Draper](https://github.com/adamwdraper)'s project
  31. [Numeral.js](http://numeraljs.com/), which was in turn inspired by and heavily borrowed from
  32. [Moment.js](http://momentjs.com).
  33. # License
  34. Copyright © 2014 Adam Draper
  35. Copyright © 2015 Företagsplatsen AB
  36. ---
  37. Distributed under the MIT license. If you want to know more, see the `LICENSE` file.
  38. The original license file for `Numeral.js` can be found in `LICENSE-Numeraljs`