Midnight is an open source web framework for node.js without external dependencies.
const midnight = require("midnight");
const app = midnight();
app.route("/", (req, res) => {
res.send("Hello world!");
});
app.start();npm i midnight
Midnight provides first-class Typescript support with comprehensive type definitions. These types are automatically available when you install the package in a Typescript project.
A basic example demonstrating how to use Midnight.js with Typescript is available in the examples/typescript directory.
To run the Typescript example:
cd examples/typescript
npm install
npm run start:devSee full documentation.