MCPcopy Create free account
hub / github.com/PatrickJS/awesome-cursorrules / hasNetworkEgressPattern

Function hasNetworkEgressPattern

scripts/check-repo-hygiene.mjs:572–576  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

570}
571
572function hasNetworkEgressPattern(content) {
573 return /\b(?:curl|wget|nc|ncat|netcat|scp|sftp|ftp)\b|(?:fetch|XMLHttpRequest)\s*\(|\bInvoke-WebRequest\b|\biwr\b|https?:\/\//i.test(
574 content,
575 );
576}
577
578function hasSensitiveCredentialPattern(content) {
579 const sensitiveCredentialPattern =

Calls

no outgoing calls

Tested by

no test coverage detected