Skip to main content
Home

Built and signed on GitHub Actions

A lightweight development web server.

This package works with Deno
This package works with Deno
JSR Score
100%
Published
4 months ago (0.10.2)
class Server

Web server.

Examples

Basic usage

const server = new Server({
  hostname: 'localhost',
  port: 3000,
  directoryIndex: 'index.html',
  liveReload: true,
  bundle: true,
  playground: true,
  documentRoot: './public',
});

server.start();

server.stop();

Constructors

new
Server(options?: Partial<ServerOptions>)

Creates a new instance of the Server class.

Methods

start(): void

Starts the server.

stop(): void

Stops the server.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@akiraohgaki/devsrv

Import symbol

import { Server } from "@akiraohgaki/devsrv";
or

Import directly with a jsr specifier

import { Server } from "jsr:@akiraohgaki/devsrv";