Skip to content

AwesomeStickz/copy-text-into-clipboard

Repository files navigation

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

About

A simple package to copy text, contents of a file into the clipboard outside browsers (server side)

Resources

License

Stars

Watchers

Forks

Packages

No packages published