{"id":21347866,"url":"https://github.com/amiryxe/easy-number-separator","last_synced_at":"2025-07-31T19:35:49.380Z","repository":{"id":37499058,"uuid":"191783239","full_name":"amiryxe/easy-number-separator","owner":"amiryxe","description":"Easy Number Separator is a plugin for live separate input numbers in textboxes","archived":false,"fork":false,"pushed_at":"2022-12-11T05:44:48.000Z","size":59,"stargazers_count":28,"open_issues_count":6,"forks_count":14,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T23:11:20.618Z","etag":null,"topics":["currency","input","javascript","keypress","number","price","pure-javascript","separator"],"latest_commit_sha":null,"homepage":"https://amiryxe.github.io/easy-number-separator/","language":"HTML","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/amiryxe.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}},"created_at":"2019-06-13T14:55:17.000Z","updated_at":"2024-08-15T16:14:25.000Z","dependencies_parsed_at":"2023-01-26T16:31:35.415Z","dependency_job_id":null,"html_url":"https://github.com/amiryxe/easy-number-separator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/amiryxe/easy-number-separator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiryxe%2Feasy-number-separator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiryxe%2Feasy-number-separator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiryxe%2Feasy-number-separator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiryxe%2Feasy-number-separator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amiryxe","download_url":"https://codeload.github.com/amiryxe/easy-number-separator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiryxe%2Feasy-number-separator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265025538,"owners_count":23699768,"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":["currency","input","javascript","keypress","number","price","pure-javascript","separator"],"created_at":"2024-11-22T02:16:55.692Z","updated_at":"2025-07-12T17:32:04.161Z","avatar_url":"https://github.com/amiryxe.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy Number Separator\n\nEasy Number Separator is a useful pure JavaScript plugin for currency format and separate numbers on input.\n\n### \u003ca href=\"https://amiryxe.github.io/easy-number-separator/\" target=\"_blank\"\u003eView Demo\u003c/a\u003e\n\n### Features\n\n- Separate numbers by your custom character separators like comma character (`,`) or any other characters.\n- Does not accept non-numeric characters.\n- Can work on any text inputs by your selector.\n\n### How to Use\n\n1. Add **Easy Number Separator** plugin to your project:\n\n```html\n\u003cscript src=\"js/easy-number-separator.js\"\u003e\u003c/script\u003e\n```\n\n3. Make your input text field like this:    \n```html\n\u003cinput type=\"text\" class=\"number-separator\" /\u003e\n```\n\n3. Select your input element:\n```javascript\neasyNumberSeparator({\n    selector: '.number-separator',\n    separator: ','\n})\n```\n\n### Options\n|Title|Default|Description|\n|-----|-------|-----------|\n|selector|`.number-separator`|Selects the input element|\n|separator|`,`|The character of number separator|\n|decimalSeparator|`.`|The character of decimal separator|\n|resultInput|-|Raw number generated for purposes such as server submission and calculations| \n\n### Send data to server\nIf you want to send pure data to the server (without symbols), you can set a result input by `resultInput` property and hold the original value.\n\n#### Example:\n\n##### HTML:\n```html\n\u003cinput type=\"text\" id=\"result_input\" name=\"\"\u003e\n```\n##### JavaScript:\n```javascript\neasyNumberSeparator({\n    selector: '.number-separator',\n    separator: ',',\n    resultInput: '#result_input',\n})\n```\n\n\n### CDN\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/amiryxe/easy-number-separator/easy-number-separator.js\"\u003e\u003c/script\u003e\n```\n\nEnjoy :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiryxe%2Feasy-number-separator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famiryxe%2Feasy-number-separator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiryxe%2Feasy-number-separator/lists"}