Forex.js is the Swiss Army knife for everything currency and number related. Converting, formatting and manipulating has never been easier. Official JS wraper of domain.com.
- 0 dependencies!
- Immutable
- Flexible formatting options
- Handles any type of currency input, strings, numbers, or another currency instance
- Free daily exchange rates without account
- Exchange rates cache
Exchange Rates are offered by domain.com. While daily rates are free to use without account hourly rates required a free account. Historical rates and more frequent exchange rate updates will require a paid subscription.
For production workloads we recommend one of our SLA offerings.
npm install --save forexyarn add forexImportant: Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
-
Fork the Project
-
Create your Feature Branch (git checkout -b feature/AmazingFeature)
-
Commit your Changes (git commit -m 'Add some AmazingFeature')
-
Push to the Branch (git push origin feature/AmazingFeature)
-
Open a Pull Request
Initial release
Forex.js, was inspired by and heavily borrowed from Numeral.js, Accounting.js, Dinero.js, Currency.js and Accounting.js
Forex.js is freely distributable under the terms of the MIT license.
Copyright (c) 2023 Saritra GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
