{"id":21176888,"url":"https://github.com/alivekeep/currency-transformation","last_synced_at":"2025-03-14T18:24:58.426Z","repository":{"id":177508618,"uuid":"357128833","full_name":"Alivekeep/currency-transformation","owner":"Alivekeep","description":"Currency transformation util","archived":false,"fork":false,"pushed_at":"2021-04-12T12:50:43.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T21:37:59.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alivekeep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-12T09:12:27.000Z","updated_at":"2021-04-12T12:50:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d0c7dad-71f0-498d-8883-f1c75e567893","html_url":"https://github.com/Alivekeep/currency-transformation","commit_stats":null,"previous_names":["alivekeep/currency-transformation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alivekeep%2Fcurrency-transformation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alivekeep%2Fcurrency-transformation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alivekeep%2Fcurrency-transformation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alivekeep%2Fcurrency-transformation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alivekeep","download_url":"https://codeload.github.com/Alivekeep/currency-transformation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243624095,"owners_count":20321029,"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":[],"created_at":"2024-11-20T17:13:49.927Z","updated_at":"2025-03-14T18:24:58.412Z","avatar_url":"https://github.com/Alivekeep.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Currency transformation util\n\n### Installation\n\n```bash\nyarn add currency-transformation\n```\n\n### How to usage\n\n```typescript\nimport { CurrencyTransformation, CurrencyList } from 'currency-transformation';\n\nconst currencyTransformation = new CurrencyTransformation();\n\nconst amount = currencyTransformation.convert({\n  amount: 100,\n  from: CurrencyList.USD,\n  to: CurrencyList.UAH,\n  baseCurrency: CurrencyList.UAH, // should be 1 as value in rates list\n  moneyFormat: true,\n  crossFormat: false,\n  rates: {\n    EUR: 29.67359,\n    GBP: 33.4715,\n    RUB: 0.37,\n    USD: 27.17391,\n    UAH: 1\n  }\n});\n\nconsole.log(amount);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falivekeep%2Fcurrency-transformation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falivekeep%2Fcurrency-transformation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falivekeep%2Fcurrency-transformation/lists"}