{"id":25086,"library":"cmacc-compiler","title":"cmacc-compiler","description":"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.","status":"maintenance","version":"2.1.9","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install cmacc-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add cmacc-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add cmacc-compiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for parsing Cmacc syntax.","package":"remarkably","optional":false}],"imports":[{"note":"Package is CommonJS-only; no ESM default export.","wrong":"import { cmaccCompiler } from 'cmacc-compiler'","symbol":"cmaccCompiler","correct":"const cmaccCompiler = require('cmacc-compiler')"},{"note":"Named export for compile function, but requires CJS.","wrong":"import { compile } from 'cmacc-compiler'","symbol":"compile","correct":"const { compile } = require('cmacc-compiler')"},{"note":"Alternative destructuring is also valid, but import is wrong.","wrong":"const render = require('cmacc-compiler').render","symbol":"render","correct":"const { render } = require('cmacc-compiler')"}],"quickstart":{"code":"const cmaccCompiler = require('cmacc-compiler');\nconst options = { base: '/path/to/cmacc-dir' };\ncmaccCompiler.compile(options).then(result => {\n  console.log(result.html);\n}).catch(err => console.error(err));","lang":"javascript","description":"Shows how to compile Cmacc files using require and options object."},"warnings":[{"fix":"Run npm install remarkably --save","message":"Package requires Remarkably as a peer dependency; missing it causes runtime errors.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Use actively maintained doc generators like Pandoc.","message":"No updates since 2019; consider forking or alternatives.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Use require() instead of import.","message":"Only CommonJS; ESM imports will fail.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install remarkably","cause":"Remarkably not installed as peer dependency.","error":"Error: Cannot find module 'remarkably'"},{"fix":"Use const cmaccCompiler = require('cmacc-compiler')","cause":"Using import instead of require with CommonJS package.","error":"TypeError: cmaccCompiler.compile is not a function"},{"fix":"Set options.base to a valid directory path.","cause":"options.base missing or not a string.","error":"Error: base path must be a string"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}