mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
10 lines
315 B
TypeScript
10 lines
315 B
TypeScript
import { readFile } from 'fs/promises';
|
|
|
|
async function readFileUtf8(path: string): Promise<string> {
|
|
return readFile(path, { encoding: 'utf8' });
|
|
}
|
|
|
|
async function test(path: string) {
|
|
await readFileUtf8(path); /* use=moduleImport("fs/promises").getMember("exports").getMember("readFile").getReturn() */
|
|
}
|