freecurrencyrate
v1.0.2
Published
Introducing our NPM package for currency conversion - free to use forever! Get accurate and up-to-date currency exchange rates without any usage limits or hidden costs.
Downloads
13
Maintainers
Readme
��#� �F�r�e�e�C�u�r�r�e�n�c�y�R�a�t�e�
�
�
�
�F�r�e�e�C�u�r�r�e�n�c�y�R�a�t�e� �i�s� �a� �J�a�v�a�S�c�r�i�p�t� �l�i�b�r�a�r�y� �t�h�a�t� �p�r�o�v�i�d�e�s� �f�r�e�e� �c�u�r�r�e�n�c�y� �c�o�n�v�e�r�s�i�o�n�.�
�
�
�
�#�#� �I�n�s�t�a�l�l�a�t�i�o�n�
�
�
�
�Y�o�u� �c�a�n� �i�n�s�t�a�l�l� �F�r�e�e�C�u�r�r�e�n�c�y�R�a�t�e� �u�s�i�n�g� �[�n�p�m�]�(�h�t�t�p�s�:�/�/�n�p�m�j�s�.�c�o�m�/�)� �b�y� �r�u�n�n�i�n�g� �t�h�e� �f�o�l�l�o�w�i�n�g� �c�o�m�m�a�n�d�:�
�
�
�
��
��b�a�s�h�
�
�n�p�m� �i�n�s�t�a�l�l� �f�r�e�e�c�u�r�r�e�n�c�y�r�a�t�e�
�
�
��
�
�
�
�
�#�#� �U�s�a�g�e�
�
�
�
�F�i�r�s�t�,� �i�m�p�o�r�t� �t�h�e� ��f�r�e�e�c�u�r�r�e�n�c�y�r�a�t�e�
� �m�o�d�u�l�e�:�
�
�
�
��
��j�a�v�a�s�c�r�i�p�t�
�
�c�o�n�s�t� �c� �=� �r�e�q�u�i�r�e�(�"�f�r�e�e�c�u�r�r�e�n�c�y�r�a�t�e�"�)�;�
�
�
��
�
�
�
�
�T�o� �c�o�n�v�e�r�t� �a� �c�u�r�r�e�n�c�y�,� �c�a�l�l� �t�h�e� ��c�
� �f�u�n�c�t�i�o�n� �w�i�t�h� �t�h�e� �b�a�s�e� �c�u�r�r�e�n�c�y�,� �t�a�r�g�e�t� �c�u�r�r�e�n�c�y�,� �a�n�d� �a�m�o�u�n�t� �a�s� �a�r�g�u�m�e�n�t�s�.� �T�h�e� �f�u�n�c�t�i�o�n� �t�a�k�e�s� �a� �c�a�l�l�b�a�c�k� �a�s� �i�t�s� �f�o�u�r�t�h� �a�r�g�u�m�e�n�t�,� �w�h�i�c�h� �w�i�l�l� �b�e� �c�a�l�l�e�d� �w�i�t�h� �t�h�e� �r�e�s�u�l�t� �o�f� �t�h�e� �c�o�n�v�e�r�s�i�o�n�:�
�
�
�
��
��j�a�v�a�s�c�r�i�p�t�
�
�c�(�b�a�s�e�,� �t�a�r�g�e�t�,� �a�m�o�u�n�t�,� �r�e�s�u�l�t� �=�>� �{�
�
� � � � �c�o�n�s�o�l�e�.�l�o�g�(�r�e�s�u�l�t�)�;�
�
�}�)�;�
�
�
��
�
�
�
�
�F�o�r� �e�x�a�m�p�l�e�,� �t�o� �c�o�n�v�e�r�t� �1�0�0� �I�n�d�o�n�e�s�i�a�n� �R�u�p�i�a�h� �(�I�D�R�)� �t�o� �U�n�i�t�e�d� �S�t�a�t�e�s� �D�o�l�l�a�r�s� �(�U�S�D�)�,� �y�o�u� �c�a�n� �u�s�e� �t�h�e� �f�o�l�l�o�w�i�n�g� �c�o�d�e�:�
�
�
�
��
��j�a�v�a�s�c�r�i�p�t�
�
�c�(�'�i�d�r�'�,� �'�u�s�d�'�,� �1�0�0�,� �r�e�s�u�l�t� �=�>� �{�
�
� � � � �c�o�n�s�o�l�e�.�l�o�g�(�r�e�s�u�l�t�)�;�
�
�}�)�;�
�
�
��
�
�
�
�
�#�#� �C�o�n�t�r�i�b�u�t�i�n�g�
�
�
�
�C�o�n�t�r�i�b�u�t�i�o�n�s� �t�o� �F�r�e�e�C�u�r�r�e�n�c�y�R�a�t�e� �a�r�e� �w�e�l�c�o�m�e�!� �I�f� �y�o�u� �w�o�u�l�d� �l�i�k�e� �t�o� �m�a�k�e� �a� �m�a�j�o�r� �c�h�a�n�g�e�,� �p�l�e�a�s�e� �o�p�e�n� �a�n� �i�s�s�u�e� �f�i�r�s�t� �t�o� �d�i�s�c�u�s�s� �y�o�u�r� �p�r�o�p�o�s�e�d� �c�h�a�n�g�e�s�.� �W�h�e�n� �s�u�b�m�i�t�t�i�n�g� �a� �p�u�l�l� �r�e�q�u�e�s�t�,� �p�l�e�a�s�e� �m�a�k�e� �s�u�r�e� �t�o� �u�p�d�a�t�e� �a�n�y� �r�e�l�e�v�a�n�t� �t�e�s�t�s�.�
�
�
�
�T�h�a�n�k� �y�o�u� �f�o�r� �c�o�n�s�i�d�e�r�i�n�g� �c�o�n�t�r�i�b�u�t�i�n�g� �t�o� �F�r�e�e�C�u�r�r�e�n�c�y�R�a�t�e�!�