copyFile

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 file path/url

Params

  1. url*-String

    The file url copy to the clipboard

Return

  1. -Promise

    A promise fullfilled when the copy has been made correctly

Example

import { copyFile } from '@blackbyte/sugar/clipboard';
copyFile('https://www.google.com/favicon.ico');

Todo

  • testsnormal