clipboard-files
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

clipboard-files

A nodejs addon, read or write file paths for clipboard, supports win32 and mac osx.

Install

npm i clipboard-files

Building for Electron

npm i clipboard-files --build-from-source --runtime=electron --target=24.0.0 --target_arch=ia32 --dist-url=https://electronjs.org/headers

Usage

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()

/clipboard-files/

    Package Sidebar

    Install

    npm i clipboard-files

    Weekly Downloads

    49

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    11

    Last publish

    Collaborators

    • alex.wei