Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ sea.js
File
sea.js
test/fixtures/sea.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
const
{ Module: { createRequire } } = require(
'module'
);
2
const
createdRequire = createRequire(__filename);
3
4
// Although, require('../common') works locally, that couldn't be used here
Callers
nothing calls this directly
Calls
8
createRequire
Function · 0.85
expectWarning
Function · 0.85
deepStrictEqual
Function · 0.85
dirname
Function · 0.85
require
Function · 0.50
throws
Function · 0.50
split
Method · 0.45
log
Method · 0.45
Tested by
no test coverage detected