{"id":18814457,"url":"https://github.com/jsoon/typeinput","last_synced_at":"2026-01-13T04:30:20.699Z","repository":{"id":39103640,"uuid":"268748077","full_name":"JSoon/TypeInput","owner":"JSoon","description":"用于控制输入数据类型.","archived":false,"fork":false,"pushed_at":"2023-01-07T18:45:37.000Z","size":389,"stargazers_count":0,"open_issues_count":26,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T00:48:27.789Z","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/JSoon.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":"2020-06-02T08:44:19.000Z","updated_at":"2020-11-30T02:52:00.000Z","dependencies_parsed_at":"2023-02-07T21:15:15.078Z","dependency_job_id":null,"html_url":"https://github.com/JSoon/TypeInput","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FTypeInput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FTypeInput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FTypeInput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSoon%2FTypeInput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JSoon","download_url":"https://codeload.github.com/JSoon/TypeInput/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239750268,"owners_count":19690605,"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-11-07T23:41:10.084Z","updated_at":"2026-01-13T04:30:20.644Z","avatar_url":"https://github.com/JSoon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e输入数据类型控制工具模块\u003c/h1\u003e\n\n用于表单输入控件中, 对输入文本进行类型限制, 目前实现的类型有:\n\n- 文本输入\n- 整数输入\n- 小数输入\n\n## 单元测试\n\n1. `npm install`\n2. `npm run test`\n3. 访问 `http://localhost:8080/test.html`\n\n## 使用方法\n\n1. 安装模块\n```\nnpm i @financial-freedom/typeinput\n```\n2. 导入模块\n```js\n// 整体导入\nimport * as typeinput from '@financial-freedom/typeinput';\nimport {\n  text,\n  integer,\n  decimal,\n} from '@financial-freedom/typeinput';\n\n// 单独导入\nimport text from '@financial-freedom/typeinput/src/types/text';\nimport integer from '@financial-freedom/typeinput/src/types/integer';\nimport decimal from '@financial-freedom/typeinput/src/types/decimal';\n```\n\n## 文档\n\n请查看源码 JSDoc 注释.\n\n## 浏览器兼容性\n\n```\ndefaults\n\u003e 5% in CN\nlast 2 versions\nie \u003e= 10\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsoon%2Ftypeinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsoon%2Ftypeinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsoon%2Ftypeinput/lists"}