import * as sass from "sass"; import { fileURLToPath } from "node:url"; const result = await sass.compileAsync( fileURLToPath(new URL("./javascript-api.scss", import.meta.url)), { style: "expanded" }, ); console.log(result.css);