This package has been deprecated

Author message:

This package has been replaced by @apiglobal/typedserver

@pushrocks/easyserve
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @pushrocks/easyserve

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

24.5 kB

Total Files

23

Last publish

Collaborators

  • lossless