MCPcopy
hub / github.com/prettier/prettier / runExperimentalCli

Function runExperimentalCli

tests/integration/__tests__/experimental-cli.js:7–13  ·  view source on GitHub ↗
(args, options)

Source from the content-addressed store, hash-verified

5const require = createRequire(import.meta.url);
6
7function runExperimentalCli(args, options) {
8 return runCli("cli/experimental-cli", [...args, "--no-cache"], {
9 title: args.join(" "),
10 ...options,
11 env: { ...options?.env, PRETTIER_EXPERIMENTAL_CLI: 1 },
12 });
13}
14
15const code = 'console.log("Hello, world!");\n';
16const unformatted = `

Callers 1

Calls 1

runCliFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…