parse-paste
v1.0.1
Published
parse clipboard data when trigger paste event
Downloads
9
Maintainers
Readme
parse-paste
parse clipboard data when trigger paste event
install
pnpm i parse-paste
usage
import { parsePaste } from "parse-paste";
export default () => (
<textarea
placeholder="paste anything here"
onPaste={(e) => {
const result = parsePaste(e);
console.log(222, result);
}}
/>
);