Skip to content

A native addon for Electron that copies a file to the clipboard in macOs

License

Notifications You must be signed in to change notification settings

rhwoodpecker/electron-clipboard-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electron-clipboard-file

c++ 编写 nodejs addon,通过 node-addon-api 封装, 在 electron 应用中, mac 平台实现文件复制到剪贴板功能,目前已发布到 npm,欢迎下载体验

Install

npm install electron-clipboard-file

Usage

const copyFileToClipboard = require('electron-clipboard-file')
copyFileToClipboard('User/Renhao/Desktop/hello.txt')

Props

copyFileToClipboard(filePath)

名称 说明 类型 是否必选
filePath 要拷贝的文件完整路径 string

Description

仅供学习使用

About

A native addon for Electron that copies a file to the clipboard in macOs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published