UNPKG

@servable/server

Version:
14 lines (11 loc) 366 B
import targetComposePath from "./targetDockerComposePath.js" import fs from 'fs' import ensureDirectoryExistsSync from "../../../../utils/ensureDirectoryExistsSync.js" export default async ({ protocol, data, }) => { const targetPath = targetComposePath({ protocol }) ensureDirectoryExistsSync(targetPath) return fs.promises.writeFile(targetPath, data) }