sudodoki / copy-to-clipboard

Copy stuff into clipboard from your browser using JS
http://sudodoki.github.io/copy-to-clipboard/example/
MIT License
1.27k stars 132 forks source link

reselectPrevious is not a function #113

Closed brakdag closed 2 years ago

brakdag commented 2 years ago

I try this code... in node repl. I install it.

>npm i -s copy-to-clipboard
>node
const copy = require("copy-to-clipboard")
copy("text")

return:

Uncaught TypeError: reselectPrevious is not a function
    at copy (.......\node_modules\copy-to-clipboard\index.js:107:5)
sudodoki commented 2 years ago

You need package that works with node. This one is supposed to run on client side