{"id":19214341,"url":"https://github.com/ofcold/security-code","last_synced_at":"2025-08-17T19:34:07.164Z","repository":{"id":48260150,"uuid":"108699225","full_name":"ofcold/security-code","owner":"ofcold","description":"A powerful security code input supports dynamic configuration of the number of input boxes.","archived":false,"fork":false,"pushed_at":"2021-08-05T13:18:11.000Z","size":2687,"stargazers_count":62,"open_issues_count":1,"forks_count":12,"subscribers_count":7,"default_branch":"2.1-typescript","last_synced_at":"2025-08-02T08:43:48.512Z","etag":null,"topics":["code","component","security-code","sms","vue","vue2","vue3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ofcold.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":"2017-10-29T02:30:48.000Z","updated_at":"2023-12-25T13:48:48.000Z","dependencies_parsed_at":"2022-09-20T23:21:14.234Z","dependency_job_id":null,"html_url":"https://github.com/ofcold/security-code","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ofcold/security-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofcold%2Fsecurity-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofcold%2Fsecurity-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofcold%2Fsecurity-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofcold%2Fsecurity-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ofcold","download_url":"https://codeload.github.com/ofcold/security-code/tar.gz/refs/heads/2.1-typescript","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofcold%2Fsecurity-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270898810,"owners_count":24664705,"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-17T02:00:09.016Z","response_time":129,"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":["code","component","security-code","sms","vue","vue2","vue3"],"created_at":"2024-11-09T14:09:42.539Z","updated_at":"2025-08-17T19:34:07.133Z","avatar_url":"https://github.com/ofcold.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ofcold Security Code\nA powerful security code input supports dynamic configuration of the number of input boxes.\n\n## Features\n- Automatic next input box.\n- Page initialization automatic countdown.\n- The number of custom input boxes.\n- Support copy and paste.\n- Support tailwindcss by version \u003e=2.0.0\n\n## Installation\n\n```bash\nnpm install --save ofcold-vue-security-code\n\n// OR\n\nyarn add ofcold-vue-security-code\n```\n\n## Usage\n\n```html\n\u003c!-- Html  --\u003e\n\u003cinput-code v-model=\"code\"/\u003e\n```\n\n\n#### VUE 2.0 And 3.0\n```javascript\n// Javascript\nimport InputCode from 'ofcold-vue-security-code';\n\nexport default {\n\tdata:() =\u003e ({\n\t\tcode: ''\n\t}),\n\tcomponents: {\n\t\tInputCode\n\t}\n}\n\n// OR ...\nimport {defineComponent, ref} from 'vue'\nimport InputCode from 'ofcold-vue-security-code'\n\nexport default defineComponent({\n\tcomponents: {\n\t\tInputCode\n\t},\n\tsetup(props, ctx) {\n\t\tconst code = ref('')\n\n\t\treturn {\n\t\t\tcode\n\t\t}\n\t}\n})\n```\n\n## API\n- `isArray` Deprecated version 2.x please use `returnArray`.\n- `returnArray` boolean default false The return data type.\n- `val` string|array default ''.\n- `len` The code length default `6`.\n- `size` The input size default `md` The options are `small`, `default`, `lg`, `xl`.\n\n## Example loading...\n\n![CODE](https://github.com/ofcold/security-code/blob/master/sms.gif?sanitize=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofcold%2Fsecurity-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofcold%2Fsecurity-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofcold%2Fsecurity-code/lists"}