cli-mid-compiler

raw JSON →
1.0.24 verified Fri May 01 auth: no javascript abandoned

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.

error Cannot find module 'cli-mid-compiler'
cause Module not installed or npm install failed
fix
Run 'npm install cli-mid-compiler' in your project directory.
error compiler is not a function
cause Incorrect import (ESM import on CommonJS module)
fix
Use 'const compiler = require('cli-mid-compiler');' instead of import.
gotcha Package is effectively abandoned; no updates since 2016. Do not use for new projects.
fix Consider using an alternative CLI framework with active maintenance.
breaking Requires cli-command to function; no standalone use.
fix Ensure cli-command is installed and configured before using this middleware.
npm install cli-mid-compiler
yarn add cli-mid-compiler
pnpm add cli-mid-compiler

Shows how to require and use the compiler middleware with a cli-command instance.

const compiler = require('cli-mid-compiler');
// Assuming a cli-command instance is available
command.use(compiler({
  // Compiler options here
}));