Compiler for YAML, JSON and INI files using path references. Version 2.0.2 is the latest stable release. The library resolves $ref references in configuration files, enabling modular composition of templates. Designed for Node.js 8+ with native Promises and async/await. Key differentiator: supports YAML, JSON, and INI formats with CLI and programmatic API. Active development with security fixes for js-yaml and handlebars dependencies.
npm install refs-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Resolves $ref references in a YAML template and writes the compiled output to a file.
Use import compiler from 'refs-compiler' or const { default: compiler } = require('refs-compiler')Upgrade Node.js to version 8 or higher
Use async/await or .then() instead of callbacks
Do not destructure named exports; import the default export
const { default: compiler } = require('refs-compiler');Run npm install refs-compiler --save-dev
Use CommonJS require with .default or set type: module in package.json