Registry / serialization / cmacc-compiler

cmacc-compiler

JSON →
library2.1.9jsnpmunverified

cmacc-compiler is a document compiler for the Cmacc format, version 2.1.9. It processes Cmacc files through a pipeline: loading, parsing, assembling, reducing, compiling, and rendering to HTML. Key differentiators: it handles variables, AST generation, and multi-source loading (local or network). Alternatives like Pandoc or custom markdown parsers lack Cmacc-specific features. Release cadence is sporadic; not actively maintained.

npm install cmacc-compiler
INSTALL
IMPORT
SIG · CMACC-COMPILER
C
cmacc-compiler
serializationjavascriptv2.1.9
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.

cmaccCompiler
const cmaccCompiler = require('cmacc-compiler')
import { cmaccCompiler } from 'cmacc-compiler'
Package is CommonJS-only; no ESM default export.
compile
const { compile } = require('cmacc-compiler')
import { compile } from 'cmacc-compiler'
Named export for compile function, but requires CJS.
render
const { render } = require('cmacc-compiler')
const render = require('cmacc-compiler').render
Alternative destructuring is also valid, but import is wrong.

Shows how to compile Cmacc files using require and options object.

const cmaccCompiler = require('cmacc-compiler'); const options = { base: '/path/to/cmacc-dir' }; cmaccCompiler.compile(options).then(result => { console.log(result.html); }).catch(err => console.error(err));
cmacc --version
Debug
Known issues
gotchaPackage requires Remarkably as a peer dependency; missing it causes runtime errors.
fix
Run npm install remarkably --save
affects: >=2.0.0
deprecatedNo updates since 2019; consider forking or alternatives.
fix
Use actively maintained doc generators like Pandoc.
affects: >=2.0.0
gotchaOnly CommonJS; ESM imports will fail.
fix
Use require() instead of import.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'remarkably'
Remarkably not installed as peer dependency.
fix
npm install remarkably
TypeError: cmaccCompiler.compile is not a function
Using import instead of require with CommonJS package.
fix
Use const cmaccCompiler = require('cmacc-compiler')
Error: base path must be a string
options.base missing or not a string.
fix
Set options.base to a valid directory path.
Upgrade
Version history
2.1.9latest on npm
Audit
Dependencies
remarkablyrequiredCore dependency for parsing Cmacc syntax.
Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
cmacc-compiler — npm install cmacc-compiler · libregistry