Registry / cli-mid-compiler

cli-mid-compiler

JSON →
library1.0.24jsnpmunverified

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.

npm install cli-mid-compiler
INSTALL
IMPORT
SIG · CLI-MID-COMPILER
C
cli-mid-compiler
javascriptv1.0.24
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compiler
const compiler = require('cli-mid-compiler')
import compiler from 'cli-mid-compiler'
Package is CommonJS only; no ESM exports. Use require() for Node.js.
compiler
import compiler = require('cli-mid-compiler')
import * as compiler from 'cli-mid-compiler'
For TypeScript with esModuleInterop, use import = require(). Default import does not work.

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 }));
Debug
Known issues
gotchaPackage is effectively abandoned; no updates since 2016. Do not use for new projects.
fix
Consider using an alternative CLI framework with active maintenance.
affects: *
breakingRequires cli-command to function; no standalone use.
fix
Ensure cli-command is installed and configured before using this middleware.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'cli-mid-compiler'
Module not installed or npm install failed
fix
Run 'npm install cli-mid-compiler' in your project directory.
compiler is not a function
Incorrect import (ESM import on CommonJS module)
fix
Use 'const compiler = require('cli-mid-compiler');' instead of import.
Upgrade
Version history
1.0.24latest on npm
Audit
Dependencies
cli-commandrequiredThis middleware is designed for the cli-command module
Agent activity
6 hits · last 30 days
node
6
Resources
cli-mid-compiler — npm install cli-mid-compiler · libregistry