MCPcopy Create free account
hub / github.com/bitwarden/clients / readFile

Method readFile

apps/cli/src/utils.ts:30–32  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

28 }
29
30 static readFile(input: string): Promise<string> {
31 return CliUtils.readFileBuffer(input).then((data) => data.toString("utf8"));
32 }
33
34 static readBinaryFile(input: string): Promise<Uint8Array> {
35 return CliUtils.readFileBuffer(input).then((data) => new Uint8Array(data));

Callers 4

loadChromeIdsMethod · 0.80
readFileBufferMethod · 0.80
extractZipContentMethod · 0.80
importMethod · 0.80

Calls 2

readFileBufferMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected