UNPKG

logicguru-engine

Version:

Advanced JSON-based rule engine with nested conditions, async evaluation, and flexible action system. Perfect for business rules, workflows, and decision automation.

9 lines (7 loc) 270 B
import fs from 'fs/promises'; import path from 'path'; export async function resolveDynamicFilePath(files, relPath) { const fullPath = path.join(files.basePath, relPath); const content = await fs.readFile(fullPath, 'utf-8'); return JSON.parse(content); }