{"id":18825776,"url":"https://github.com/nikhils4/react-currency-conv","last_synced_at":"2025-04-14T01:31:31.403Z","repository":{"id":65483045,"uuid":"301659716","full_name":"nikhils4/react-currency-conv","owner":"nikhils4","description":"React component as an npm package for currency conversion. Supports fetching the latest and historical currency exchange rate based on the input date along with specific precision.","archived":false,"fork":false,"pushed_at":"2020-10-08T11:08:29.000Z","size":332,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-29T06:45:48.048Z","etag":null,"topics":["converter","currency","currency-conversion","exchange-rate","historical-data","npm","package","precision","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-currency-conv","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikhils4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-06T08:21:17.000Z","updated_at":"2024-03-05T09:49:53.000Z","dependencies_parsed_at":"2023-01-25T11:15:39.294Z","dependency_job_id":null,"html_url":"https://github.com/nikhils4/react-currency-conv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhils4%2Freact-currency-conv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhils4%2Freact-currency-conv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhils4%2Freact-currency-conv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhils4%2Freact-currency-conv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikhils4","download_url":"https://codeload.github.com/nikhils4/react-currency-conv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248807577,"owners_count":21164713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converter","currency","currency-conversion","exchange-rate","historical-data","npm","package","precision","react"],"created_at":"2024-11-08T01:00:49.359Z","updated_at":"2025-04-14T01:31:31.001Z","avatar_url":"https://github.com/nikhils4.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-currency-conv\n\nReact component for currency conversion. Supports fetching latest and historical currency exchange rate based on the input date alongwith specific precision.\n\n## Changes\n\n## v1.1.0:\n\n- Update documentation\n- Minor bug fixes\n\n## Installation\n\n```\nnpm install react-currency-conv --save\n```\n\n## Integration\n\nYou can get the converted value as the output of the react component and style it according to your preference.\n- from: Initial currency\n- to: Target currency\n- value: The amount that you want to get converted\n\n```javascript\nimport React from 'react';\nimport CurrencyConverter from 'react-currency-conv';\n\nexport default class App extends React.Component {\n  render() {\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cCurrencyConverter from={'USD'} to={'CAD'} value={29}/\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n```\n\n## Precision\n\nSpecify a specific precision:\n\n```javascript\n    // 2234.67 (default)\n    \u003cCurrencyConverter from={'USD'} to={'CAD'} value={29} precision={2}/\u003e\n```\n\n```javascript\n    // 78.2482\n    \u003cCurrencyConverter from={'USD'} to={'CAD'} value={29} precision={4}/\u003e\n```\n\n## Date\n\nTo get the exchange rate value form :-\n\n```javascript\n\t// NOTE: The date should be in `YYYY-MM-DD` format\n    \u003cCurrencyConverter from={'USD'} to={'CAD'} value={29} date={'2010-12-22'}/\u003e\n```\n\nAll other attributes are applied normally to the element. For example, you can integrate bootstrap styling as:\n\n```javascript\n    \u003cCurrencyConverter from={'USD'} to={'CAD'} value={29} className=\"form-control\"/\u003e\n```\n\n\n## Options\n\nOption            | Default Value | Description\n----------------- | ------------- | -----------------------------------------------------------------------------------------\ndate              | null          | Date you want to fetch exchange rate of (YYYY-MM-DD)\nprecision         | 2             | Number of digits after the decimal separator\n\n\n## Supported currencies\n\nCode      |\n----------|\nINR       |             \nIDR       |             \nILS       |            \nMXN       |            \nUSD       |             \nZAR       |             \nNZD       |            \nNOK       |             \nCNY       |             \nBGN       |             \nTRY       |             \nPLN       |             \nSGD       |             \nCHF       |\nTHB       |             \nJPY       |             \nHRK       |             \nRUB       |             \nBRL       |             \nCAD       |             \nHKD       |             \nISK       |            \nPHP       |            \nDKK       |             \nHUF       |             \nCZK       |            \nRON       |             \nSEK       |             \nAUD       |             \nEUR       |             \nMYR       |             \nKRW       |             \nGBP       |         \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhils4%2Freact-currency-conv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikhils4%2Freact-currency-conv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhils4%2Freact-currency-conv/lists"}