MCPcopy Index your code
hub / github.com/nodejs/node / to_snake_case

Function to_snake_case

deps/inspector_protocol/code_generator.py:155–157  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

153
154
155def to_snake_case(name):
156 name = re.sub(r"([A-Z]{2,})([A-Z][a-z])", r"\1_\2", name)
157 return re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", name, count=sys.maxsize).lower()
158
159
160def to_method_case(config, name):

Callers 2

format_includeFunction · 0.70
to_file_nameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…