Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PatrickJS/awesome-cursorrules
/ relativeToRoot
Function
relativeToRoot
scripts/check-repo-hygiene.mjs:190–192 ·
view source on GitHub ↗
(filePath)
Source
from the content-addressed store, hash-verified
188
}
189
190
function
relativeToRoot(filePath) {
191
return
normalize(filePath).slice(normalize(root).length + 1);
192
}
193
194
function
checkReadme() {
195
const
readmePath = join(root,
"README.md"
);
Callers
1
walk
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected