/sharex-server

ShareX image hosting done with Node.js

Primary LanguageJavaScriptMIT LicenseMIT

sharex-server (NodeJS)

🗒️ The easiest way to run sharex-server is to use our Docker solution (which you can find here). If you want to manually run it, continue reading!

⚙️ Requirements

Usage

  • npm install sharex-server
  • Use the following code:
const Server = require('sharex-server');

new Server({
        password: 'password',
        path: 'definitely/not/my/nudes',
        port: 6666,
        fileLength: 10
})
  • Enjoy

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