MCPcopy Create free account
hub / github.com/Moli-X/Resources / getNodeInfo

Function getNodeInfo

Script/Parser.js:3588–3597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3586 }
3587
3588 const getNodeInfo = servers => {
3589 const nodes = {
3590 names: servers.map(s => s.split("tag=")[1]),
3591 types: servers.map(s => {
3592 const type = s.match(/^(vmess|trojan|shadowsocks|http)=/);
3593 return type ? type[1] : 'unknown';
3594 })
3595 };
3596 return nodes;
3597 }
3598
3599
3600 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected