Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DiamondHunters/NodeInject
/ append_require_to_file
Function
append_require_to_file
src/main.rs:51–57 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
49
}
50
51
fn append_require_to_file() {
52
let mut file = OpenOptions::new()
53
.append(true)
54
.open(INJECT_JS_PATH)
55
.unwrap();
56
file.write_all(
"\nrequire('./hook')"
.as_ref()).unwrap();
57
}
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected