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

Method username

lib/internal/url.js:1023–1028  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1021 }
1022
1023 get username() {
1024 if (this.#context.protocol_end + 2 < this.#context.username_end) {
1025 return StringPrototypeSlice(this.#context.href, this.#context.protocol_end + 2, this.#context.username_end);
1026 }
1027 return '';
1028 }
1029
1030 set username(value) {
1031 const href = bindingUrl.update(this.#context.href, updateActions.kUsername, `${value}`);

Callers 4

readUsernameFunction · 0.80
adduserFunction · 0.80
loginFunction · 0.80
read-user-info.jsFile · 0.80

Calls 2

#updateContextMethod · 0.95
updateMethod · 0.65

Tested by

no test coverage detected