readText

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

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

Return

  1. -String

    The text to read

Example

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

Todo

  • testsnormal