{"id":20875867,"url":"https://github.com/saqqdy/clipboard-parser","last_synced_at":"2025-08-31T09:37:44.649Z","repository":{"id":57200425,"uuid":"316574366","full_name":"saqqdy/clipboard-parser","owner":"saqqdy","description":"A tool to read the clipboard and parse out the table data. Support for parsing @RequestParam/@ApiModelProperty interfaces to define code, Word, Excel and other form-like data","archived":false,"fork":false,"pushed_at":"2023-10-09T05:00:30.000Z","size":740,"stargazers_count":17,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T20:59:08.287Z","etag":null,"topics":["api","api-tool","apimodelproperty","clipboard-parser","excel","java","java-parser","java-tool","parser","requestparam","web-table","word"],"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/saqqdy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":["saqqdy"]}},"created_at":"2020-11-27T18:31:46.000Z","updated_at":"2023-06-21T03:56:43.000Z","dependencies_parsed_at":"2025-05-12T15:37:46.049Z","dependency_job_id":"3eca67d7-6949-4978-abca-14aa586bfa1b","html_url":"https://github.com/saqqdy/clipboard-parser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/saqqdy/clipboard-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fclipboard-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fclipboard-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fclipboard-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fclipboard-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saqqdy","download_url":"https://codeload.github.com/saqqdy/clipboard-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saqqdy%2Fclipboard-parser/sbom","scorecard":{"id":800449,"data":{"date":"2025-08-11","repo":{"name":"github.com/saqqdy/clipboard-parser","commit":"fc6359c825de5d13400364313df153a5af0a3602"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish-test.yml:12","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/publish-test.yml:11","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/publish.yml:11","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish.yml:12","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/codacy-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/publish-test.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codacy-analysis.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/codacy-analysis.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/codacy-analysis.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/codacy-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codacy-analysis.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/codacy-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/publish-test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/publish-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-test.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/publish-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/saqqdy/clipboard-parser/publish.yml/master?enable=pin","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T10:19:25.730Z","repository_id":57200425,"created_at":"2025-08-23T10:19:25.730Z","updated_at":"2025-08-23T10:19:25.730Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272965431,"owners_count":25023066,"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-31T02:00:09.071Z","response_time":79,"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":["api","api-tool","apimodelproperty","clipboard-parser","excel","java","java-parser","java-tool","parser","requestparam","web-table","word"],"created_at":"2024-11-18T06:48:52.570Z","updated_at":"2025-08-31T09:37:44.624Z","avatar_url":"https://github.com/saqqdy.png","language":"TypeScript","funding_links":["https://github.com/sponsors/saqqdy"],"categories":[],"sub_categories":[],"readme":"\u003cdiv style=\"text-align: center;\" align=\"center\"\u003e\n\n# clipboard-parser\n\nA tool to read the clipboard and parse out the table data. Support for parsing @RequestParam/@ApiModelProperty interfaces to define code, Word, Excel and other form-like data\n\n[![NPM version][npm-image]][npm-url]\n[![Codacy Badge][codacy-image]][codacy-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n[![gzip][gzip-image]][gzip-url]\n[![License][license-image]][license-url]\n\n[![Sonar][sonar-image]][sonar-url]\n\n\u003c/div\u003e\n\n\u003cdiv style=\"text-align: center; margin-bottom: 20px;\" align=\"center\"\u003e\n\n### **[Documentation](https://www.saqqdy.com/clipboard-parser)** • **[Change Log](./CHANGELOG.md)**\n\n\u003c/div\u003e\n\n## Installing\n\n```bash\n# use pnpm\n$ pnpm install clipboard-parser\n\n# use npm\n$ npm install clipboard-parser --save\n\n# use yarn\n$ yarn add clipboard-parser\n```\n\n## Usage\n\n```vue\n\u003c!-- demo.vue --\u003e\n\u003ctemplate\u003e\n  \u003ctextarea @paste=\"handlePaste\"\u003e\u003c/textarea\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport clipboardParser from 'clipboard-parser'\n\nexport default {\n  methods: {\n    handlePaste(e) {\n      const result = clipboardParser(e)\n      // ...\n    }\n  }\n}\n\u003c/script\u003e\n```\n\nUsing unpkg CDN:\n\n```html\n\u003cbody\u003e\n  \u003ctextarea onpaste=\"handlePaste\"\u003e\u003c/textarea\u003e\n\u003c/body\u003e\n\u003cscript src=\"https://unpkg.com/clipboard-parser@3.0.0/dist/index.global.prod.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  function handlePaste(event) {\n    const data = clipboardParser(event)\n  }\n\u003c/script\u003e\n```\n\n## Demos\n\n### 1. Parsing JAVA code containing the interface definition of @RequestParam\n\ninput\n\n```java\n@RequestParam(\"rowCount\")\n@ApiParam(required = false, name = \"rowCount\", value = \"page size\",defaultValue = 10)\n    String rowCount,\n@RequestParam(value = \"current\")\n@ApiParam(required = false, name = \"current\", value = \"start page\",defaultValue = 1)\n    String current,\n```\n\noutput\n\n```json\n[\n  {\n    \"type\": \"String\",\n    \"required\": true,\n    \"name\": \"rowCount\",\n    \"defaultValue\": 10,\n    \"description\": \"page size\"\n  },\n  {\n    \"type\": \"String\",\n    \"required\": true,\n    \"name\": \"current\",\n    \"defaultValue\": 1,\n    \"description\": \"start page\"\n  }\n]\n```\n\n### 2. Parsing JAVA code containing the interface definition of @ApiModelProperty\n\ninput\n\n```java\n@ApiModelProperty(value = \"id key\", required = true)\n    private String id;\n@ApiModelProperty(value = \"name\")\n    private String name;\n```\n\noutput\n\n```json\n[\n  {\n    \"required\": true,\n    \"type\": \"String\",\n    \"description\": \"id key\",\n    \"defaultValue\": \"\",\n    \"name\": \"id\"\n  },\n  {\n    \"required\": true,\n    \"type\": \"String\",\n    \"description\": \"name\",\n    \"defaultValue\": \"\",\n    \"name\": \"name\"\n  }\n]\n```\n\n### 3. Parse word/excel/web-page-table and other form-like data\n\ninput\n\n| Parameters | Description | Type   | Optional               | Required | Default             |\n| ---------- | ----------- | ------ | ---------------------- | -------- | ------------------- |\n| type       | branch type | String | feature/bugfix/support | false    | current branch type |\n| name       | branch name | String | -                      | false    | current branch name |\n\noutput\n\n```json\n[\n  {\n    \"name\": \"type\",\n    \"type\": \"String\",\n    \"required\": false,\n    \"defaultValue\": \"\",\n    \"description\": \"branch type\"\n  },\n  {\n    \"name\": \"name\",\n    \"type\": \"String\",\n    \"required\": false,\n    \"defaultValue\": \"\",\n    \"description\": \"branch name\"\n  }\n]\n```\n\n## Support \u0026 Issues\n\nPlease open an issue [here](https://github.com/saqqdy/clipboard-parser/issues).\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/clipboard-parser.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/clipboard-parser\n[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696\n[codacy-url]: https://www.codacy.com/gh/saqqdy/clipboard-parser/dashboard?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=saqqdy/clipboard-parser\u0026utm_campaign=Badge_Grade\n[codecov-image]: https://img.shields.io/codecov/c/github/saqqdy/clipboard-parser.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/saqqdy/clipboard-parser?branch=master\n[download-image]: https://img.shields.io/npm/dm/clipboard-parser.svg?style=flat-square\n[download-url]: https://npmjs.org/package/clipboard-parser\n[gzip-image]: http://img.badgesize.io/https://unpkg.com/clipboard-parser/lib/index.js?compression=gzip\u0026label=gzip%20size:%20JS\n[gzip-url]: http://img.badgesize.io/https://unpkg.com/clipboard-parser/lib/index.js?compression=gzip\u0026label=gzip%20size:%20JS\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: LICENSE\n[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_clipboard-parser\n[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_clipboard-parser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaqqdy%2Fclipboard-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaqqdy%2Fclipboard-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaqqdy%2Fclipboard-parser/lists"}