@enjoys/express-utils
v2.1.1
Published
Some Dependencies like logger and file mapper and routes resolver are here
Downloads
85
Maintainers
Readme
Express Framework Package
A modular API framework with support for both ESM and CommonJS, providing essential functionalities for building secure and scalable APIs.
Documentation
Installation
npm install @enjoys/express-utils
# or
yarn add @enjoys/express-utils
Features
- 🚀 Dual module support (ESM/CommonJS)
- 🔒 Built-in authentication
- 🛡️ API route security
- 📝 Schema validation
- 🔄 Request interceptors
- ⚡ Rate limiting
- 🗃️ Static file serving
- 📁 Automatic route loading
- 🎯 Custom file mapping
- 📝 Comprehensive logging
- ⚠️ Exception handling
Modules Usage
import { GracefulShutdown } from "@enjoys/express-utils";
// or
const { GracefulShutdown } = require("@enjoys/express-utils");
OR
As you type @enjoys/express-utils
and /
(trailing slash) it will suggest what sub-package you want to import
import { serveStatic } from "@enjoys/express-utils/serve-static";
// or
const { serveStatic } = require("@enjoys/express-utils/serve-static");
All modules include TypeScript type definitions. Types are automatically included when importing the modules.
Contributing
Contributions are welcome! Please read our contributing guidelines for details.
License
MIT License