Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ canonicalize-node-modules.ts
File
canonicalize-node-modules.ts
nix/scripts/canonicalize-node-modules.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ lstat, mkdir, readdir, rm, symlink } from
"fs/promises"
2
import
{ join, relative } from
"path"
3
4
type
Entry = {
Callers
nothing calls this directly
Calls
12
join
Function · 0.85
parseEntry
Function · 0.85
isValidSemver
Function · 0.85
symlink
Function · 0.85
push
Method · 0.80
isDirectory
Function · 0.70
cwd
Method · 0.65
get
Method · 0.65
rm
Function · 0.50
set
Method · 0.45
from
Method · 0.45
log
Method · 0.45
Tested by
no test coverage detected