copy-text-into-clipboard
v1.1.0
Published
A simple package to copy text, contents of a file into the clipboard outside browsers (server side)
Downloads
3
Maintainers
Readme
copy-text-into-clipboard
A simple package to copy text, contents of a file into the clipboard outside browsers (server side)
Install
$ npm i copy-text-into-clipboard
Example
const { copy } = require('copy-text-into-clipboard');
copy('Text to Copy');
// To copy file contents
copy('./path/to/file.extension', { copyFromFile: true });