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

Function commentLines

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

Source from the content-addressed store, hash-verified

827// Shared license + note text, copied next to this script by BUILD.bazel — see scripts/*.txt.
828const GENERATOR_DIR = dirname(fileURLToPath(import.meta.url))
829const commentLines = (text) =>
830 text
831 .split('\n')
832 .map((line) => `// ${line}`.trimEnd())
833 .join('\n')
834
835const LICENSE_HEADER = commentLines(readFileSync(join(GENERATOR_DIR, 'license_header.txt'), 'utf8').replace(/\n$/, ''))
836

Callers 1

generate_bidi.mjsFile · 0.70

Calls 2

splitMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected