{"library":"express-unless","type":"library","category":null,"description":"express-unless is a utility library for Express.js that enables conditional execution of middleware functions. It allows developers to attach an `unless` method directly to any Express middleware, providing granular control over when that middleware should be skipped. The library currently ships as version 2.1.3 and has seen stable releases, with the latest update in April 2021. It differentiates itself by offering a fluent API for defining skip conditions based on HTTP methods, request paths (including regular expressions and path/method pairs), file extensions, or a fully custom predicate function. This approach simplifies complex conditional routing logic often found in Express applications, providing a cleaner way to apply authentication, logging, or other cross-cutting concerns selectively.","language":"javascript","status":"active","version":"2.1.3","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-unless","imports":["import { unless } from 'express-unless';","const { unless } = require('express-unless');","import type { UnlessOptions } from 'express-unless';"]},{"cmd":"yarn add express-unless","imports":[]},{"cmd":"pnpm add express-unless","imports":[]}],"homepage":null,"github":"https://github.com/jfromaniello/express-unless","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-unless","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-unless/compatibility"}}