{"id":18310344,"url":"https://github.com/torann/jquery.currency","last_synced_at":"2025-04-09T11:44:25.962Z","repository":{"id":66354621,"uuid":"110020730","full_name":"Torann/jquery.currency","owner":"Torann","description":"Quick and dirty currency formatter.","archived":false,"fork":false,"pushed_at":"2018-05-29T20:38:34.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T05:43:43.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Torann.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-08T19:27:36.000Z","updated_at":"2018-05-29T20:38:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b7d112e-f093-46ad-b5a6-221fd624af3c","html_url":"https://github.com/Torann/jquery.currency","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/Torann%2Fjquery.currency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torann%2Fjquery.currency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torann%2Fjquery.currency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torann%2Fjquery.currency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Torann","download_url":"https://codeload.github.com/Torann/jquery.currency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248033549,"owners_count":21036811,"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-05T16:14:09.937Z","updated_at":"2025-04-09T11:44:25.930Z","avatar_url":"https://github.com/Torann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Currency\n\nQuick and dirty currency formatter that ties into the currency format features in Laravel Currency.\n\n## Default Format \n\nOverriding the default currency format:\n\n```javascript\n$.setCurrencyOptions({\n    defaultFormat: '1.0,00 €'\n});\n```\n\n## Formatting\n\n```\n$.formatCurrency(:value, :format, :onlyNumbers)\n```\n\n**Arguments**\n\n - `:value` - the float amount to convert\n - `:format` - the currency format (if empty the default value will be used)\n - `:onlyNumbers` - when _true_ it will return formatted value without the currency symbol\n\n## Data-API\n\nFor real-time formatting of during a blur event trigger, use the `data-format-currency` attribute.\n\nFormat the input using the default currency format:\n\n```html\n\u003cinput type=\"text\" name=\"price\" placeholder=\"0.00\" data-format-currency\u003e\n```\n\nOverride the default currency format:\n\n```html\n\u003cinput type=\"text\" name=\"price\" placeholder=\"0.00\" data-format-currency=\"₱1,0.00\"\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorann%2Fjquery.currency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorann%2Fjquery.currency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorann%2Fjquery.currency/lists"}