Auto-Currency-Formatter
The Auto Currency Formatter is a lightweight and easy-to-use Angular up to V15 library for formatting currency values in various formats. It automatically detects the user's locale and formats the currency accordingly. It supports a wide range of currencies and provides flexibility for customization.
Features
- Automatic currency formatting based on user's locale
- Support for various currency formats
- Customizable formatting options
- Lightweight and dependency-free
- Compatible with modern browsers
Installation
To add the package to your Angular project:
npm install auto-currency-formatter --save
Once installed, add the auto-currency package to your app.module.ts
:
import {CurrencyFormatterInputModule} from 'auto-currency-formatter';
...
@NgModule({
...
imports: [
...
CurrencyFormatterInputModule,
...
],
...
})
export class AppModule {}
Usage/Examples
Now you can use the auto-currency package in your in template file app.component.html
:
<input type="text" CurrencyInput="INR/USD">
Examples
- INDIAN Currency formatter example
<input type="text" CurrencyInput="USD">
- USD Currency formatter example
<input type="text" CurrencyInput="USD">
Supported Currencies
The Auto Currency Formatter supports a wide range of currencies. Here are a few examples:
- USD (United States Dollar)
- INR (Indian Ruppes)
For a complete list of supported currencies, please refer to the documentation.
Contributing
Contributions to the Angular Currency Formatter module are welcome.
Contributions to the Auto Currency Formatter package are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository. If you'd like to contribute code, you can fork the repository, make your changes, and submit a pull request.
License
This package is licensed under the MIT License. You are free to use, modify, and distribute the package in your projects. See the LICENSE file for more information.
Acknowledgements
The Auto Currency Formatter package was inspired by the need for a simple and efficient currency formatting solution. We would like to thank all the contributors who helped make this project possible.
Warning
After you enter the value in the input field, it will be converted.