{"id":15019450,"url":"https://github.com/maddeveloper/ng4-input-counter","last_synced_at":"2026-02-07T02:02:42.728Z","repository":{"id":143765415,"uuid":"94528866","full_name":"MadDeveloper/ng4-input-counter","owner":"MadDeveloper","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-06T10:13:01.000Z","size":30,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T21:06:53.417Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MadDeveloper.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-06-16T09:32:13.000Z","updated_at":"2017-07-23T10:35:00.000Z","dependencies_parsed_at":"2023-05-22T17:45:07.069Z","dependency_job_id":null,"html_url":"https://github.com/MadDeveloper/ng4-input-counter","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":"0.33333333333333337","last_synced_commit":"2702900160eba63e7970f708c440212ad41b15bd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadDeveloper%2Fng4-input-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadDeveloper%2Fng4-input-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadDeveloper%2Fng4-input-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadDeveloper%2Fng4-input-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MadDeveloper","download_url":"https://codeload.github.com/MadDeveloper/ng4-input-counter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858065,"owners_count":20359252,"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-09-24T19:53:30.107Z","updated_at":"2026-02-07T02:02:42.701Z","avatar_url":"https://github.com/MadDeveloper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng4-input-counter\n\nA very cool input which display characters counter and can be configured to display counter bounds.\n\n\n## Normal\n\n![](http://g.recordit.co/VtQnGdw6eX.gif)\n\n## Maxlength\n\n![](http://g.recordit.co/KAVkmjZBxO.gif)\n\n## Minlength\n\n![](http://g.recordit.co/Ww5C5R8B4Z.gif)\n\n## Both\n\n![](http://g.recordit.co/5XUR8OArww.gif)\n\n## Installation\n\nTo install the library, run:\n\n```bash\n$ npm install ng4-input-counter --save\n```\n\nand then from your Angular module\n\n```typescript\nimport { InputCounterModule } from 'ng4-input-counter';\n\n@NgModule({\n  ...\n  imports: [\n    ...\n    InputCounterModule.forRoot()\n  ],\n  ...\n})\nexport class AppModule { }\n```\n\n## How to use\n\n```xml\n\u003cform\u003e\n    \u003cinput-counter \n      type=\"email\" \n      placeholder=\"Email address\" \n      required=\"true\"\n      [(ngModel)]=\"email\"\u003e\n    \u003c/input-counter\u003e\n\u003c/form\u003e\n```\n\n### With Bootstrap\n\n```xml\n\u003cdiv class=\"form-group\"\u003e\n    \u003cinput-counter \n      [(ngModel)]=\"email\" \n      name=\"email\" \n      className=\"form-control\" \n      placeholder=\"Email address\"\u003e\n    \u003c/input-counter\u003e\n\u003c/div\u003e\n```\n\n## API of input-counter\n\n**`ngModel: any`**\n\n**`id: string`**\n\n**`type: string = 'text'`**\n\n**`className: string`**\n\n\u003e `className` (like the React way) has been used instead of `class` because of it being a reserved keyword in JavaScript and TypeScript.\n\n\n**`name: string`**\n\n**`placeholder: string = ''`**\n\n**`maxlength: number`**\n\n**`minlength: number`**\n\n**`pattern: string`**\n\n**`disabled: boolean = false`**\n\n**`required: boolean = false`**\n\n**`readonly: boolean = false`**\n\nYou can also bind all angular input events handler, like `(focus)`, `(blur)`, `(keyup)`, `(keydown)`, etc.\n\n\n## License\n\nMIT © [maddeveloper](https://github.com/MadDeveloper)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaddeveloper%2Fng4-input-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaddeveloper%2Fng4-input-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaddeveloper%2Fng4-input-counter/lists"}