Benign javascript Download

package/src/cli/formatters.ts

Encoded ANSI terminal color controlSerializes an identifier as JSON
SHA-25632d5864b65edec49c9aa39bce879ebd75c7049c96cfd9ff0998f87bd708ec6d1
MaleculeH₂(DbU)

Evidence

Encoded ANSI terminal color control lines 16–43
⋯5 lines
21
22const C = {
23 reset: "\x1b[0m",
24 bold: "\x1b[1m",
25 dim: "\x1b[2m",
26 red: "\x1b[31m",
27 green: "\x1b[32m",
28 yellow: "\x1b[33m",
29 blue: "\x1b[34m",
30 cyan: "\x1b[36m",
31} as const;
32
⋯11 lines
Serializes an identifier as JSON lines 44–51
44:11… OutputFormat,
45): string {
46 if (format === "json") {
47 return JSON.stringify(entries, null, 2) + "\n";
48 }
49
50 if (entries.length === 0) {
51 return success("All translations are complete. No missing keys …
Result field or assignment key lines 171–173
171
172export function formatValidate(result: ValidateResult, format: OutputFormat): string {
173 if (format == …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.