{"id":26835,"library":"cli-mid-compiler","title":"cli-mid-compiler","description":"Compiler middleware for the cli-command module, part of the Freeformsystems CLI toolkit. Version 1.0.24 is the latest stable release. This package appears to be a supporting middleware for compiling commands, likely used internally within the toolkit. The release cadence is unstable (only a few versions). Key differentiator: it is a small, focused middleware for a specific CLI framework. However, the package has minimal documentation and appears to be abandoned or in maintenance mode.","status":"abandoned","version":"1.0.24","language":"javascript","source_language":"en","source_url":"https://github.com/freeformsystems/cli-mid-compiler","tags":["javascript","cli","middleware","compiler","program","markdown"],"install":[{"cmd":"npm install cli-mid-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add cli-mid-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add cli-mid-compiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This middleware is designed for the cli-command module","package":"cli-command","optional":false}],"imports":[{"note":"Package is CommonJS only; no ESM exports. Use require() for Node.js.","wrong":"import compiler from 'cli-mid-compiler'","symbol":"compiler","correct":"const compiler = require('cli-mid-compiler')"},{"note":"For TypeScript with esModuleInterop, use import = require(). Default import does not work.","wrong":"import * as compiler from 'cli-mid-compiler'","symbol":"compiler","correct":"import compiler = require('cli-mid-compiler')"}],"quickstart":{"code":"const compiler = require('cli-mid-compiler');\n// Assuming a cli-command instance is available\ncommand.use(compiler({\n  // Compiler options here\n}));","lang":"javascript","description":"Shows how to require and use the compiler middleware with a cli-command instance."},"warnings":[{"fix":"Consider using an alternative CLI framework with active maintenance.","message":"Package is effectively abandoned; no updates since 2016. Do not use for new projects.","severity":"gotcha","affected_versions":"*"},{"fix":"Ensure cli-command is installed and configured before using this middleware.","message":"Requires cli-command to function; no standalone use.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install cli-mid-compiler' in your project directory.","cause":"Module not installed or npm install failed","error":"Cannot find module 'cli-mid-compiler'"},{"fix":"Use 'const compiler = require('cli-mid-compiler');' instead of import.","cause":"Incorrect import (ESM import on CommonJS module)","error":"compiler is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}