use-light-copy
v1.0.0
Published
<!-- * @Author: zhang_gen_yuan * @Date: 2022-04-10 09:42:35 * @LastEditTime: 2022-04-10 09:56:54 * @Descripttion: -->
Downloads
1
Readme
install
npm install use-light-copy
Usage
/*
* @name: toCopy
* @test: test font
* @msg:
* @param text:String options:Object =>{debug:Boolean}
* @return Promise=>then(res:Boolean)
*/
const { toCopy } = require('use-light-copy')
button.addEventListener('click', async () => {
await isCopy = toCopy('This is some cool text',{debug:true})
})