New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/Xarth-Mai/iClipboard-Go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Xarth-Mai/iClipboard-Go

  • v0.0.0-20240929120747-f85f7ed66c38
  • Source
  • Go
  • Socket score

Version published
Created
Source

iClipboard-Go It's MyGO!!!!!

GitHub release (latest by date)

iClipboard-Go is an application to share cilpboard between 💻Linux and 📱iOS

Usage

For iOS users

  1. Have fun...😊

Configuration

iClipboard-Go will create two file which are config.json and log.txt in the execute path when first running

You can make customization by editing config.json

config.json

  • port

    • type: string
    • default: "8086"
  • logLevel

    • type: string
    • default: "warning"
    • values: "panic", "fatal", "error", "warning", "info", "debug", "trace"
  • authkey

    • type: string
    • default: ''
  • authkeyExpiredTimeout

    • type: int64
    • default: 30
  • tempDir

    • type: string
    • default: ./temp
  • reserveHistory

    • type: Boolean
    • default: false
  • notify

    • type: object
    • children:
      • copy
        • type: Bollean
        • default: false
      • paste
        • type: Boolean
        • default: false

API

The default http server will listen 8086 port and you can't chanage that since hardcoded.

Common headers

Required
  • X-API-Version: indicates version of api
Optional
  • X-Client-Name: indicates name of device
  • X-Auth: hashed authkey. Value from md5(config.authkey + timestamp/30)

1. Get windows clipboard

Request

  • URL: /
  • Method: GET

Reponse

  • Body: json
// 200 ok

{
  "type": "text",
  "data": "clipboard text on the server"
}

{
  "type": "file",
  "data": [
    {
      "name": "filename",
      "content": "base64 string of file bytes"
    }
    ...
  ]
}

2. Set windows clipboard

Request

  • URL: /

  • Method: POST

  • Headers:

    • X-Content-Type: indicates type of request body content
      • required
      • values: text, file, media
  • Body: json

For text:

{
  "data": "text you want to set"
}

For file:

{
  "data": [
    {
      "name": "filename",
      "base64": "base64 string of file bytes"
    }
  ]
}

Reponse

Reponse body is empty. If set successfully, status code will be 200

FAQs

Package last updated on 29 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc