1.1.6 • Published 5 years ago

@pushrocks/easyserve v1.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@pushrocks/smartserve

easy serving of static files

Availabililty and Links

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

import { SmartServe } from '@pushrocks/smartserve';

let mySmartserve = new SmartServe('/some/path/to/webroot', 8080);
mySmartserve.start().then(() => {
  // this is executed when server is running guaranteed
  mySmartserve.stop(); // .stop() will work even if not waiting for server to be fully started
});

mySmartserve.reload(); // reloads all connected browsers of this instance

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer