copy-texts-to-clipboard

A simple package to copy text to clipboard in windows using node.js

Usage no npm install needed!

<script type="module">
  import copyTextsToClipboard from 'https://cdn.skypack.dev/copy-texts-to-clipboard';
</script>

README

copy-texts-to-clipboard

A simple package to copy text to the clipboard outside browsers (server side)

Install

$ npm i copy-texts-to-clipboard

Example

const copy = require('copy-texts-to-clipboard');

copy('Text to Copy');

// Copy a file's content
copy('./path/to/file.extension', { copyFromFile: true });