Skip to content

authenticname/sharex-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharex-server (Node.js)

Usage

You can use either Docker or run it directly with Node.js.

If you wish to do the latter, make sure to install Node from here and follow the instructions provided below:

  • npm install sharex-server
  • Use the following code:
const Server = require("sharex-server");
new Server({
  password: "password",
  path: "images",
  port: 6666,
  fileLength: 10,
});

Sharex configuration

  • The password is to be set as a header;
  • The file form name is to be set to image;
  • The image uploading endpoint is /api/upload;
  • The upload endpoint returns a JSON with a URL link;

ShareX - Custom uploader settings