I recently did some work on a VS Code extension whose purpose is to handle rich pastes. It prompted me to survey different copy-pasting libraries and the state of the NPM ecosystem as a whole. How do clipboards work? Clipboards across different operating systems work essentially the same. For this reason, we will stick to looking at a single one – Windows. A common misconception about how clipboards work is that they contain a single piece of data, such as text or an image.