{"id":15920148,"url":"https://github.com/mnowik/ember-currencies","last_synced_at":"2025-08-15T17:31:56.905Z","repository":{"id":57223616,"uuid":"53633814","full_name":"mnowik/ember-currencies","owner":"mnowik","description":"List of currencies iso and symbol format","archived":false,"fork":false,"pushed_at":"2018-12-27T12:51:17.000Z","size":38,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-31T02:25:23.432Z","etag":null,"topics":["addon","ember","ember-addon","ember-cli-addon","npm"],"latest_commit_sha":null,"homepage":null,"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/mnowik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-11T02:36:28.000Z","updated_at":"2018-03-21T23:58:05.000Z","dependencies_parsed_at":"2022-08-30T02:40:27.022Z","dependency_job_id":null,"html_url":"https://github.com/mnowik/ember-currencies","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mnowik/ember-currencies","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowik%2Fember-currencies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowik%2Fember-currencies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowik%2Fember-currencies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowik%2Fember-currencies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnowik","download_url":"https://codeload.github.com/mnowik/ember-currencies/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowik%2Fember-currencies/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270603961,"owners_count":24614606,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["addon","ember","ember-addon","ember-cli-addon","npm"],"created_at":"2024-10-06T19:21:15.370Z","updated_at":"2025-08-15T17:31:56.623Z","avatar_url":"https://github.com/mnowik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-currencies\n[![npm version](https://badge.fury.io/js/ember-currencies.svg)](https://badge.fury.io/js/ember-currencies)\n\nA simple Addon that contains the 2 following lists:\n - all the currencies in ISO3 (USD), ISO-Numeric (840), English name (United States dollar) formats and their symbol ($) if applicable.\n - the currencies per country.\n\nHere are a list of the main helpers:\n - Currency ISO3 or ISO-Numeric to Currency object.\n - Country ISO2 to array of Currencies object (countries may have multiple currencies).\n\nYou can find more information about ISO 4217 codes here:\n - [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)\n - [Currency Authority](http://www.xe.com/iso4217.php)\n\n## Installation\n\n* `ember install ember-currencies`\n\n\n## Usage\n\n### All imports\n```js\nimport { CURRENCIES_LIST, CURRENCIES_PER_COUNTRY_LIST } from 'ember-currencies';\nimport { getCurrency, getCurrenciesForCountry } from 'ember-currencies';\nimport defaultEmberCurrencies from 'ember-currencies';\n```\n\n### Example 1: currencies lists\n```js\nimport Em from 'ember';\nimport { CURRENCIES_LIST } from 'ember-currencies';\n\nexport default Em.Controller.extend({\n\n  CURRENCIES_LIST: CURRENCIES_LIST,\n  ...\n});\n```\n\n### Example 2: currencies properties\n```js\nimport Em from 'ember';\nimport { getCurrency } from 'ember-currencies';\n\nexport default Em.Controller.extend({\n\n  currencyHelper() {\n    let expect   = {name: \"United States dollar\", iso3: \"USA\", isoNumeric: \"840\", symbol: \"$\"};\n    let currency1 = getCurrency('USD');\n    let currency2 = getCurrency('840');\n    \n    currency1 === expect  // true\n    currency2 === expect  // true\n    \n  },\n  ...\n});\n```\n\n### Example 3: Currencies per country lists\n```js\nimport Em from 'ember';\nimport emberCurrencies from 'ember-currencies';\n\nexport default Em.Controller.extend({\n\n  US_STATES: emberCurrencies.CURRENCIES_PER_COUNTRY_LIST,\n  ...\n});\n```\n\n### Example 4: states properties\n```js\nimport Em from 'ember';\nimport { getCurrenciesForCountry } from 'ember-currencies';\n\nexport default Em.Controller.extend({\n\n  currencyHelper() {\n    let expect = {name: \"United States dollar\", iso3: \"USA\", isoNumeric: \"840\", symbol: \"$\"};\n    let currency = getCurrenciesForCountry('US');\n    \n    currency === expect  // true\n  },\n  ...\n});\n```\n## Running Tests\n\n* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).\n\n## Contributing\n\nPRs welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnowik%2Fember-currencies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnowik%2Fember-currencies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnowik%2Fember-currencies/lists"}