This project is a simple HTTP server built using Node.js. It includes a custom logger with various log levels and serves HTML files, with an option to stream the content.
- Node.js v22
- Supports streaming of partial HTML content
- Custom logger with multiple log levels (fatal, error, warn, info, debug, trace) using styleText
- Configurable log level via environment variables
- Configurable server port via environment variables
git clone https://github.com/dueen/node-krypton.git
cd node-krypton
# nothing to install, have some tea instead
# Start the server in streaming mode
npm run dev:stream
# Start the server in non-streaming mode
npm run dev
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any changes.