Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
clipboard-parser
Advanced tools
Changelog
2023.06.21 v3.0.0
Readme
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
# use pnpm
$ pnpm install clipboard-parser
# use npm
$ npm install clipboard-parser --save
# use yarn
$ yarn add clipboard-parser
<!-- demo.vue -->
<template>
<textarea @paste="handlePaste"></textarea>
</template>
<script>
import clipboardParser from 'clipboard-parser'
export default {
methods: {
handlePaste(e) {
const result = clipboardParser(e)
// ...
}
}
}
</script>
Using unpkg CDN:
<body>
<textarea onpaste="handlePaste"></textarea>
</body>
<script src="https://unpkg.com/clipboard-parser@3.0.0/dist/index.global.prod.js"></script>
<script>
function handlePaste(event) {
const data = clipboardParser(event)
}
</script>
input
@RequestParam("rowCount")
@ApiParam(required = false, name = "rowCount", value = "page size",defaultValue = 10)
String rowCount,
@RequestParam(value = "current")
@ApiParam(required = false, name = "current", value = "start page",defaultValue = 1)
String current,
output
[
{
"type": "String",
"required": true,
"name": "rowCount",
"defaultValue": 10,
"description": "page size"
},
{
"type": "String",
"required": true,
"name": "current",
"defaultValue": 1,
"description": "start page"
}
]
input
@ApiModelProperty(value = "id key", required = true)
private String id;
@ApiModelProperty(value = "name")
private String name;
output
[
{
"required": true,
"type": "String",
"description": "id key",
"defaultValue": "",
"name": "id"
},
{
"required": true,
"type": "String",
"description": "name",
"defaultValue": "",
"name": "name"
}
]
input
Parameters | Description | Type | Optional | Required | Default |
---|---|---|---|---|---|
type | branch type | String | feature/bugfix/support | false | current branch type |
name | branch name | String | - | false | current branch name |
output
[
{
"name": "type",
"type": "String",
"required": false,
"defaultValue": "",
"description": "branch type"
},
{
"name": "name",
"type": "String",
"required": false,
"defaultValue": "",
"description": "branch name"
}
]
Please open an issue here.
FAQs
A tool to read the clipboard and parse out the table data
The npm package clipboard-parser receives a total of 5 weekly downloads. As such, clipboard-parser popularity was classified as not popular.
We found that clipboard-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.