Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 366 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 366 Bytes

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 });