1.0.2 • Published 6 months ago

clipboard-history-manager v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Clipboard History Manager

Clipboard History Manager is like your personal backup hero—saving your copied text so you never lose it again! Picture this: you’re working on something important in Word or Notepad, copying and pasting like a pro, then—BAM—accidentally close the document without saving. Nightmare, right? Fear not! With Clipboard History Manager, everything you copy is automatically saved. No more panic, no more "Ctrl+Z" desperation—just copy, and it’s there, ready for you to grab. Your clipboard’s new best friend!

A simple command-line tool that tracks, saves, and manages your clipboard history. It helps you keep a record of copied content and provides features to view, clear, and automatically monitor clipboard activity.

Features

  • Automatically tracks clipboard content.
  • Saves clipboard history to a JSON file for persistence.
  • Displays the clipboard history in a clear, formatted manner.
  • Allows you to clear the clipboard history.
  • Continuously monitors the clipboard for new content.

Installation

To install the package globally via npm:

npm install -g clipboard-history-manager

Usage

Once installed, you can run the tool using the command:

cliphist

Menu Options

  • 1. View clipboard history: Displays the list of clipboard items saved in the history.
  • 2. Clear clipboard history: Clears the current clipboard history and updates the history file.
  • 3. Exit: Exits the application.

Example

  1. Start the application:
    cliphist
  2. Choose an option from the menu:
    Clipboard History Manager
    1. View clipboard history
    2. Clear clipboard history
    3. Exit
    Enter your choice:
  3. View or clear your clipboard history as needed.

Configuration

The clipboard history is stored in a file named clipboard_history.json in the current working directory. This file ensures that your clipboard history persists between sessions.

License

This project is licensed under the ISC License.

Dependencies

  • clipboardy: Used to interact with the clipboard.
  • Node.js: Ensure you have Node.js installed to run this application.

Notes

  • The clipboard is monitored every second, automatically saving new content only if it differs from the last recorded item. Ensure you have write permissions in the execution directory to save the clipboard history file.
  • Clearing the clipboard history removes all items; however, the last recorded item may be saved again if it remains unchanged during the next monitoring cycle.