⚡ Blazing fast & lightweight web cli server for Node.js. That always starts and reloads under 10-8ms 😎
Install servemon
bun add -g servemon
pnpm add -g servemon
yarn add -g servemon
npm install -g servemon
Start the serve process
servemon
And then you are good to go. Your server starts under 8-10ms. 🥳
The config file its used to configure the servemon server. Everything happens in servemon.json
Example config file.
{
"dir": "./test",
"port": 4000,
"logger": false,
"watch": true
}
Name | Type | Description |
---|---|---|
dir |
string |
Optional. The directory you have your files |
port |
number |
Optional. The port you want to serve on |
logger |
boolean |
Optional. Enable or disable the logger |
watch |
boolean |
Optional. Enable or disable the watcher, uses web-sockets to live reload |
timer |
boolean |
Optional. Enable or disable the timer that logs how many ms the server took to start and reload pages |