Page MenuHomeSealhub

make-env.ts
No OneTemporary

make-env.ts

import os from "os";
import { promises as fs } from "fs";
import _locreq from "locreq";
const target_locreq = _locreq(process.cwd());
export async function makeEnv(): Promise<void> {
const { uid, gid } = os.userInfo();
const content = `USER_ID=${uid}
GROUP_ID=${gid}
`;
const path = target_locreq.resolve(".env");
await fs.writeFile(path, content);
console.log("wrote .env");
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Dec 24, 14:02 (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557116
Default Alt Text
make-env.ts (385 B)

Event Timeline