MCPcopy Index your code
hub / github.com/nodejs/node / lazyLoadFs

Function lazyLoadFs

lib/internal/fs/utils.js:157–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156let fs;
157function lazyLoadFs() {
158 return fs ??= require('fs');
159}
160
161function assertEncoding(encoding) {
162 if (encoding && !Buffer.isEncoding(encoding)) {

Callers 3

getDirentsFunction · 0.85
getDirentFunction · 0.85
utils.jsFile · 0.85

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…