{"library":"meddleware","title":"meddleware","description":"Configuration-based middleware registration for Express.js. Current stable version is 3.0.4. Meddleware allows you to define middleware in a configuration object with options like enabled, priority, route, and module. It supports loading middleware from npm modules or local files, specifying factory methods and arguments, and flow control (parallel, series). Key differentiators include priority-based ordering, route-based activation, and parallel/sequential execution control. The package has been around since Express 4.x and is part of the Kraken.js ecosystem. It is maintained with a focus on production usage.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install meddleware"],"cli":null},"imports":["const meddleware = require('meddleware');\nconst express = require('express');\nconst app = express();\napp.use(meddleware(config));","const meddleware = require('meddleware');\napp.use(meddleware(config));","import meddleware from 'meddleware';\napp.use(meddleware(config));"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const http = require('http');\nconst express = require('express');\nconst meddleware = require('meddleware');\nconst config = {\n  static: {\n    enabled: true,\n    priority: 20,\n    module: {\n      name: 'serve-static',\n      arguments: ['public']\n    }\n  },\n  security: {\n    enabled: true,\n    priority: 10,\n    module: {\n      name: './lib/security',\n      arguments: [{ maximum: true }]\n    }\n  }\n};\nconst app = express();\napp.use(meddleware(config));\nhttp.createServer(app).listen(8080);","lang":"javascript","description":"Shows basic usage of meddleware to register middleware from configuration with priority, enabled flag, and module arguments.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}