MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / writeJson

Function writeJson

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

Source from the content-addressed store, hash-verified

252}
253
254function writeJson(fileArg, data, label, pretty = false) {
255 const out = resolve(fileArg)
256 writeFileSync(out, pretty ? JSON.stringify(data, null, 2) + '\n' : JSON.stringify(data), 'utf8')
257 console.log(` → ${out} (${label})`)
258}
259
260/** Emit one TS module per domain: types and commands/events, both from bidi_schema.json. */
261function generateTypeScript(ast, model, vendorModel, args) {

Callers 1

mainFunction · 0.85

Calls 2

logMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected