The paste event of textarea or input
clipboard parser options
array
Use in vue projects
// demo.vue
<template>
    <textarea @paste="handlePaste"></textarea>
</template>
<script>
import clipboardParser from 'clipboard-parser'
export default {
    methods: {
        handlePaste(e) {
            const result = clipboardParser(e)
            // ...
        }
    }
}
</script>
Use in html page
<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>
Generated using TypeDoc
Parsing clipboard data