@pushrocks/smartserve
easy serving of static files
Availabililty and Links
Status for master
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