{"id":14973396,"url":"https://github.com/amstel91/otp-input-directive","last_synced_at":"2025-07-12T23:34:06.417Z","repository":{"id":57316752,"uuid":"127272009","full_name":"amstel91/otp-input-directive","owner":"amstel91","description":"An Input Form Element to enter OTP Number, PIN or split single characters.","archived":false,"fork":false,"pushed_at":"2020-05-28T08:55:01.000Z","size":102,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-30T15:48:55.225Z","etag":null,"topics":["angular-directive","angular1","angularjs","autofocus-element","form-element","input-field","ios-pin","otp","otpview","pin","pin-input","split-characters","split-field","split-textbox"],"latest_commit_sha":null,"homepage":"","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/amstel91.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-03-29T09:53:00.000Z","updated_at":"2022-08-08T09:29:21.000Z","dependencies_parsed_at":"2022-08-25T20:41:03.401Z","dependency_job_id":null,"html_url":"https://github.com/amstel91/otp-input-directive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amstel91/otp-input-directive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amstel91%2Fotp-input-directive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amstel91%2Fotp-input-directive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amstel91%2Fotp-input-directive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amstel91%2Fotp-input-directive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amstel91","download_url":"https://codeload.github.com/amstel91/otp-input-directive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amstel91%2Fotp-input-directive/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265068458,"owners_count":23706453,"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":["angular-directive","angular1","angularjs","autofocus-element","form-element","input-field","ios-pin","otp","otpview","pin","pin-input","split-characters","split-field","split-textbox"],"created_at":"2024-09-24T13:48:39.562Z","updated_at":"2025-07-12T23:34:06.383Z","avatar_url":"https://github.com/amstel91.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# otpInputDirective\nAn Input Form Element to enter OTP Number, PIN or split single characters.\n![Alt Text](https://github.com/amstel91/otp-input-directive/blob/master/demo.gif)\n\n### Demo Link - http://plnkr.co/edit/eCHuJT?p=preview\n\n### Usage\nAdd angular and otpInputDirective to your code\n\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.3/angular.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"otpInputDirective.min.js\"\u003e\u003c/script\u003e\n```\n\n- Add a dependency to the `otpInputDirective` module in your application.\n\n```js\nangular.module('app', ['otpInputDirective']);\n```\n\n### In your HTML:\n```html\n\u003cdiv otp-input-directive options=\"otpInput\"\u003e\u003c/div\u003e\n```\n\n### In your Angular Controller:\n```js\n$scope.otpInput={\n            size:6,\n            type:\"text\",\n            onDone: function(value){\n                console.log(value);\n            },\n            onChange: function(value){\n                console.log(value);\n            }\n        };\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famstel91%2Fotp-input-directive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famstel91%2Fotp-input-directive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famstel91%2Fotp-input-directive/lists"}