/
home
/
desid573
/
public_html
/
smee-client-master
/
bin
/
/home/desid573/public_html/smee-client-master/bin
mkdir
upload
Name
Size
Mode
Actions
smee.js
970
0644
edit
dl
rm
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>', 'URL of the webhook proxy service. Default: https://smee.io/new') .option('-t, --target <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 <n>', 'Local HTTP server port', process.env.PORT || 3000) .option('-P, --path <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()
Save
cmd:
run