copyText

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

This function allows you to copy to the clipboard the passed text

Params

  1. text*-String

    The text to copy

Return

  1. -Promise

    A promise fullfilled when the copy has been made correctly

Example

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

Todo

  • testsnormal