Go to file
2023-11-06 11:29:53 +01:00
.gitea/workflows fix(core): update 2023-10-20 18:13:10 +02:00
.vscode fix(core): update 2023-03-29 14:54:07 +02:00
test fix(core): update 2023-08-06 18:15:01 +02:00
ts fix(core): update 2023-11-06 11:29:52 +01:00
ts_web fix(core): update 2023-11-06 11:29:52 +01:00
.gitignore fix(core): update 2023-03-29 14:54:07 +02:00
.gitlab-ci.yml fix(core): update 2023-03-29 14:54:07 +02:00
license fix(core): update 2023-03-29 14:54:07 +02:00
npmextra.json BREAKING CHANGE(core): update 2023-08-03 20:45:09 +02:00
package.json 3.0.8 2023-11-06 11:29:53 +01:00
pnpm-lock.yaml fix(core): update 2023-11-06 11:29:52 +01:00
readme.md fix(core): update 2023-07-01 12:29:35 +02:00
tsconfig.json fix(core): update 2023-03-30 15:15:48 +02:00

@pushrocks/typedserver

easy serving of static files

Status for master

Status Category Status Badge
GitLab Pipelines pipeline status
GitLab Pipline Test Coverage coverage report
npm npm downloads per month
Snyk Known Vulnerabilities
TypeScript Support TypeScript
node Support node
Code Style Code Style
PackagePhobia (total standalone install weight) PackagePhobia
PackagePhobia (package size on registry) PackagePhobia
BundlePhobia (total size when bundled) BundlePhobia

Usage

Use TypeScript for best in class instellisense.

import { TypedServer } from '@apiglobal/typedserver';

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

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

Contribution

We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can contribute one time or contribute monthly. :)

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

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