{"library":"less-middleware","type":"library","category":null,"description":"less-middleware is an HTTP middleware specifically designed to process LESS CSS files for web servers built with Connect.js or Express.js. It compiles .less files into .css on-the-fly when requested, or upon server restart with caching, and serves the resulting CSS. The current stable version, 3.1.0, is compatible with Less.js 3.9. While not on a strict schedule, releases typically follow major Less.js updates to maintain compatibility and leverage new features. Its key differentiators include robust caching mechanisms (including `cacheFile` for cross-restart caching), extensive preprocessing and postprocessing hooks (`preprocess.less`, `postprocess.css`), and fine-grained control over rendering options, making it suitable for both development and production environments by reducing disk I/O.","language":"javascript","status":"maintenance","version":"3.1.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install less-middleware","imports":["import lessMiddleware from 'less-middleware'; // For ESM-compatible setups","const lessMiddleware = require('less-middleware');"]},{"cmd":"yarn add less-middleware","imports":[]},{"cmd":"pnpm add less-middleware","imports":[]}],"homepage":null,"github":"https://github.com/emberfeather/less.js-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/less-middleware","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/less-middleware/compatibility"}}