1.0.5 • Published 7 months ago

maximum-module v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Web Server

Configuration

To configure your web server, follow these steps:

1. In your code, use the `webServer.config(PORT)` function.
2. Replace PORT with the desired port number. This sets the server to listen on the specified port.

Directory

Static Directory

You can set up a static directory to serve web content, such as HTML, CSS, and images. To do this:

1. Use the `webServer.directory.loadStaticDirectory(FOLDER)` function.
2. Replace FOLDER with the path to your static content folder.

Text Directory

You can configure your web server to serve text-based content, such as "Hello World!" To do this:

Use the `webServer.directory.textDirectory("Hello World!")` function.
Replace "Hello World!" with the text content you want to serve.

Web Loader

Load Content From URL

You can grab content from a url. Such As "crazycontent.net" To do this:

Use the `webLoader.loadContextFromURL("crazycontent.net")` function.
Replace "crazycontent.net" with the text content you want to serve.

Notifier

You can use the provided exports.notifier object to send notifications. It uses the node-notifier library to display notifications with a title and message. Here's how you can use it:

`const { nodeNotifier, notify } = webServer.notifier;
notify("Maximum Module", "This is the notification body");`
1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago