MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / writeJson

Function writeJson

javascript/selenium-webdriver/generate_bidi.mjs:197–201  ·  view source on GitHub ↗
(fileArg, data, label, pretty = false)

Source from the content-addressed store, hash-verified

195}
196
197function writeJson(fileArg, data, label, pretty = false) {
198 const out = resolve(fileArg)
199 writeFileSync(out, pretty ? JSON.stringify(data, null, 2) + '\n' : JSON.stringify(data), 'utf8')
200 console.log(` → ${out} (${label})`)
201}
202
203/** Emit one TS module per domain: types from the AST (cddl2ts), methods from the model. */
204function generateTypeScript(ast, model, args) {

Callers 1

mainFunction · 0.85

Calls 2

logMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected