WorkPlusFE / clipboard-files

A nodejs addon, read or write file path for clipboard, support win32 and mac osx.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clipboard-files

A nodejs addon, read or write file path for clipboard, support win32 and mac osx.

build for nwjs

npm i clipboard-files --build-from-source --runtime=node-webkit --target=0.45.0 --target_arch=x64

build for electron

npm i clipboard-files --build-from-source --runtime=electron --target=10.0.0 --target_arch=ia32 --dist-url=https://atom.io/download/electron

build for nodejs

npm i clipboard-files

example

const clipboard = require('clipboard-files')

// for mac
clipboard.writeFiles(['/Users/Alex/Download/helloWorld.js'])

// for win32
clipboard.writeFiles(['C:\\Users\\Alex\\Documents\\helloWorld.js'])

let fileNames = clipboard.readFiles()

About

A nodejs addon, read or write file path for clipboard, support win32 and mac osx.

License:MIT License


Languages

Language:C++ 62.1%Language:Objective-C++ 18.3%Language:Python 12.7%Language:JavaScript 6.9%