Page MenuHomeSealhub

write-file.ts
No OneTemporary

write-file.ts

import { promises as fs } from "node:fs";
import { resolve } from "path";
export async function writeFile(path: string, content: string) {
await fs.mkdir(resolve(path, "../"), { recursive: true });
await fs.writeFile(path, content);
console.log(`${path} created`);
}

File Metadata

Mime Type
text/x-java
Expires
Fri, Jan 24, 15:15 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
600174
Default Alt Text
write-file.ts (271 B)

Event Timeline