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.
 
 
 
 
 
 
butlerx 9af4f6e0bf
Refactor Repo
6 years ago
..
API.md Fix #203, update docs with uptodate args 6 years ago
README.md Refactor Repo 6 years ago
apache.md Refactor Repo 6 years ago
auto-login.md Refactor Repo 6 years ago
development.md Refactor Repo 6 years ago
docker.md Refactor Repo 6 years ago
downloading-file.md Refactor Repo 6 years ago
flags.md Refactor Repo 6 years ago
https.md Refactor Repo 6 years ago
nginx.md Refactor Repo 6 years ago
service.md Refactor Repo 6 years ago
terminal.png Refactor Repo 6 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.

const wetty = require('wetty.js');

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