You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Userdocs 09d1f34f6c
GitHub docs (#338)
3 years ago
..
assets GitHub docs (#338) 3 years ago
API.md Added --ssh-config option for alternate ssh configuration 4 years ago
README.md update atoz docs for v2 4 years ago
apache.md Add SAML2 integration doc (#312) 4 years ago
atoz.md GitHub docs (#338) 3 years ago
auto-login.md Feature/remediation (#162) 5 years ago
development.md Feature/remediation (#162) 5 years ago
docker.md Feature/remediation (#162) 5 years ago
downloading-files.md Use printf instead of echo in download function 4 years ago
flags.md update docs for v2 4 years ago
https.md update docs for v2 4 years ago
index.html GitHub docs (#338) 3 years ago
nginx.md update nginx.md 3 years ago
service.md Document limitation of Systemd (WorkingDirectory) 4 years ago
sidebar.md GitHub docs (#338) 3 years ago
terminal.png Feature/remediation (#162) 5 years ago

README.md

Docs

WeTTy

API

For WeTTy options and event details please refer to the api docs

Getting started

WeTTy is event driven. To Spawn a new server call wetty.start() with no arguments.

import { start } from 'wetty';

start(/* server settings, see Options */)
  .then((wetty) => {
    console.log('server running');
    wetty
      .on('exit', ({ code, msg }) => {
        console.log(`Exit with code: ${code} ${msg}`);
      })
      .on('spawn', (msg) => console.log(msg));
    /* code you want to execute */
  })
  .catch((err) => {
    console.error(err);
  });