/home/desid573/public_html/smee-client-master/bin
NameSizeModeActions
smee.js9700644editdlrm
Edit: /home/desid573/public_html/smee-client-master/bin/smee.js (970B)
#!/usr/bin/env node const program = require('commander') const { version } = require('../package.json') const Client = require('..') program .version(version, '-v, --version') .usage('[options]') .option('-u, --url ', 'URL of the webhook proxy service. Default: https://smee.io/new') .option('-t, --target ', 'Full URL (including protocol and path) of the target service the events will forwarded to. Default: http://127.0.0.1:PORT/PATH') .option('-p, --port ', 'Local HTTP server port', process.env.PORT || 3000) .option('-P, --path ', 'URL path to post proxied requests to`', '/') .parse(process.argv) let target if (program.target) { target = program.target } else { target = `http://127.0.0.1:${program.port}${program.path}` } async function setup () { let source = program.url if (!source) { source = await Client.createChannel() } const client = new Client({ source, target }) client.start() } setup()