{"id":25171647,"url":"https://github.com/basemax/filterinputjs","last_synced_at":"2025-08-10T03:33:02.284Z","repository":{"id":48200079,"uuid":"138864409","full_name":"BaseMax/FilterInputJs","owner":"BaseMax","description":"Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...","archived":false,"fork":false,"pushed_at":"2021-12-13T19:43:55.000Z","size":114,"stargazers_count":39,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-09T06:24:33.976Z","etag":null,"topics":["form-validate","form-validation","form-validator","input","input-validation","input-validator","javascript","javascript-lib","javascript-libraries","javascript-library","js","js-library","js-libs","purejs","valid","validate","validation","validation-library","validations","validator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.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":"2018-06-27T10:06:40.000Z","updated_at":"2024-08-09T08:43:28.000Z","dependencies_parsed_at":"2022-08-23T16:20:14.392Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/FilterInputJs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/FilterInputJs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFilterInputJs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFilterInputJs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFilterInputJs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFilterInputJs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/FilterInputJs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFilterInputJs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269672039,"owners_count":24457111,"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-10T02:00:08.965Z","response_time":71,"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":["form-validate","form-validation","form-validator","input","input-validation","input-validator","javascript","javascript-lib","javascript-libraries","javascript-library","js","js-library","js-libs","purejs","valid","validate","validation","validation-library","validations","validator"],"created_at":"2025-02-09T09:21:27.861Z","updated_at":"2025-08-10T03:33:02.260Z","avatar_url":"https://github.com/BaseMax.png","language":"JavaScript","readme":"# Filter Input\n\n## FilterInputJs\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"FilterInput\" src=\"https://raw.githubusercontent.com/BaseMax/FilterInputJs/master/image.jpg\"\u003e\n\u003c/p\u003e\n\nTiny and Powerful Library for limit an entry (text box,input) as `number`,`string` or more...\n\n![FilterInput.min.js File Size](https://img.shields.io/badge/Compressed%20Size-1.3KB-blue.svg) ![FilterInput.min.js Validation Code](https://img.shields.io/badge/Validation%20Code-Check-green.svg)\n\n## Getting started\n\nAdd the following line to your `.html` file:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/BaseMax/FilterInputJs@master/dist/index.min.js\"\u003e\u003c/script\u003e\n```\n\nor download the [minified file](https://raw.githubusercontent.com/BaseMax/FilterInputJs/master/dist/index.min.js)\n\nor use: https://cdn.jsdelivr.net/npm/filterinput/src/index.min.js\n\n## Install\n\nThis package available in the [npmjs repository (filterinput)](https://www.npmjs.com/package/filterinput), so you can easily install it with:\n\n```\nnpm i filterinput\n```\n\n## Features\n\n- Fast\n- Compact\n- No dependencies\n- Easy using Filters\n\n## Supported Tags\n\ncurrently , only work on `\u003cinput\u003e` tag.\n\n- [x] input\n- [ ] textarea\n- [ ] select\n\n## Arguments\n\n| Argument Name    | Goal                                 |\n| ---------------- | ------------------------------------ |\n| data-filter      | Set type of Filter for a \u003cinput\u003e tag |\n| data-filter-lang | Restrict allowed languages (soon)    |\n\n## Data Filters\n\n- [x] Decimal\n- [x] !Decimal (a decimal , not empty)\n- [x] Integer\n- [x] !Integer (a integer , not empty)\n- [ ] String (any character , no number)\n- [ ] !String (a string , not empty)\n- [ ] Alphabet (english,farsi:persian,arabic,china,...)\n- [ ] !Alphabet (english,farsi:persian,arabic,china,...) not empty!\n- [ ] Alphabet0 (may be have number characters)\n- [ ] !Alphabet0 (may be have number characters) not empty!\n- [ ] Any (any char or empty)\n- [ ] !Any (any char , not empty)\n\n## Data Filter Languages\n\n- [ ] english\n- [ ] persian\n- [ ] arabic\n- [ ] all\n\nYou can discuss or send a request at [here](https://github.com/BaseMax/FilterInputJs/issues/4).\n\n## Samples\n\nTo view the full details, run the example [.html file](https://github.com/BaseMax/FilterInputJs/blob/master/dist/index.html).\n\n#### `data-filter`\n\n```\nDecimal :\n\u003cinput data-filter=\"decimal\" value=\"5.64\"\u003e\n```\n\n```\nInteger :\n\u003cinput data-filter=\"integer\" value=\"91\"\u003e\n```\n\n#### `data-filter-lang`\n\nsoon will be complete.\n\nYou can choose multiple languages.\nSeparate them with `,`.\n\n#### `onclick`\n\nsoon will be complete.\n\n# Development\n\n```bash\nnpm run dev\n```\n\n```bash\nnpm run build # build the production files\n```\n\n# License\n\nFilterInput is licensed under the [GNU General Public License](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ffilterinputjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Ffilterinputjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ffilterinputjs/lists"}