Skip to content

dbbuilder-org/clip2file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

clip2file

Save clipboard contents (image or text) to a temp file and copy the file path back to clipboard.

Installation

npm install -g clip2file

Or clone and link locally:

git clone https://github.com/dbbuilder-org/clip2file.git
cd clip2file
npm link

Usage

clip2file

Example Output

clip2file - Saving clipboard to file...

Type: image
Size: 245.3 KB
Path: /var/folders/xx/xxxx/T/clip_2025-12-26_00-48-56.png

Clipboard now contains the file path (paste with Cmd+V / Ctrl+V)

How It Works

  1. Detects clipboard content type (image, text, or file list)
  2. Saves content to a temp file with timestamp: clip_YYYY-MM-DD_HH-mm-ss.{png|txt}
  3. Replaces clipboard contents with the file path
  4. You can now paste the path anywhere (Cmd+V / Ctrl+V)

Platform Support

Platform Image Text Requirements
macOS Yes Yes None
Windows Yes Yes PowerShell
Linux Yes Yes xclip

Use Cases

  • Quickly save a screenshot to share the file path
  • Convert clipboard content to a file for CLI tools
  • Integrate with AI assistants that accept file paths

License

MIT

About

Save clipboard contents (image/text) to a temp file and copy the path back to clipboard

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages