copyText

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.clipboard

Simple function to copy things into the system clipboard. This is using https://www.npmjs.com/package/clipboardy under the hood.

Params

  1. text*-String

    The text to copy

Return

  1. -String

    The text that has been copied

Example

import { copyText } from '@blackbyte/sugar/clipboard';
copyText('Hello world');

Todo

  • testsnormal