hamroun-express
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Hamroun Express

A lightweight Express-like web framework for Node.js.

Installation

npm install hamroun-express

Usage

const likeExpress = require('hamroun-express').default;
// Middleware example
likeExpress.use((req, res, next) => {
  console.log('Request received:', req.url);
  next();
});

// Route handlers
likeExpress.get('/hello', (req, res) => {
  res.send('Hello, World!');
});

likeExpress.post('/api/data', (req, res) => {
  res.json({ message: 'Data received' });
});

// Start the server
likeExpress.listen(3000, () => {
  console.log('Server running on port 3000');
});

Features

  • Express-like API
  • Middleware support
  • Basic routing
  • JSON response helper
  • TypeScript support

License

MIT

Package Sidebar

Install

npm i hamroun-express

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

110 kB

Total Files

15

Last publish

Collaborators

  • hamroun02