@plutojl/rainbow
Version:
TypeScript/JavaScript API for programmatically interacting with Pluto notebooks
8 lines (7 loc) • 342 B
TypeScript
/**
* Read a file and recursively resolve all include() statements
* @param {import("memfs").IFs} fs - File system instance
* @param {string} filePath - Absolute path to the file to process
* @returns {string} File content with all includes resolved
*/
export function resolveIncludes(fs: import("memfs").IFs, filePath: string): string;