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

Function commentLines

javascript/selenium-webdriver/generate_bidi.mjs:803–807  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

801// Shared license + note text, copied next to this script by BUILD.bazel — see scripts/*.txt.
802const GENERATOR_DIR = dirname(fileURLToPath(import.meta.url))
803const commentLines = (text) =>
804 text
805 .split('\n')
806 .map((line) => `// ${line}`.trimEnd())
807 .join('\n')
808
809const LICENSE_HEADER = commentLines(readFileSync(join(GENERATOR_DIR, 'license_header.txt'), 'utf8').replace(/\n$/, ''))
810

Callers 1

generate_bidi.mjsFile · 0.70

Calls 2

splitMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected