Multic is a Node.js library providing a converged API for compiling, minifying, and linting multiple web source formats including Jade/Pug, HTML, Less, Sass/SCSS, CSS, CoffeeScript, ES6 via Babel, JavaScript, and Angular HTML2JS. Version 0.6.0 is the latest stable release. It aims to unify error handling and configuration across different preprocessors with a consistent promise/callback interface. Key differentiators include a chainable API, unified error/warning objects, and support for writing output files directly. Release cadence is low; the library appears to be in maintenance mode with no recent updates.
npm install multicNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates the chainable API for compiling Jade to HTML, minifying JavaScript, and handling responses with promises/callbacks.
Always include options.file or use .file() chain method when passing raw source strings.
Always include the compilation step (e.g., .css(), .html()) before .min().
If using ES6 compilation, manually install babel-core v5 or migrate to a dedicated Babel pipeline.
Use require() with a .d.ts file: declare module 'multic';
For promises, always attach .catch() to handle compilation/minification failures.
Run 'npm install multic --save' in your project root.
Ensure you call multic() with a valid source string or file path, then chain .file.* methods.
Use require('multic') instead of import.Add {file: 'filename.ext'} as second argument to multic(), or use .file('filename.ext') in the chain.No dependency data recorded yet.