MCPcopy Create free account
hub / github.com/pulsar-edit/pulsar / readCachedJavaScript

Function readCachedJavaScript

src/compile-cache.js:114–122  ·  view source on GitHub ↗
(relativeCachePath)

Source from the content-addressed store, hash-verified

112}
113
114function readCachedJavaScript(relativeCachePath) {
115 const cachePath = path.join(cacheDirectory, relativeCachePath);
116 if (fs.isFileSync(cachePath)) {
117 try {
118 return fs.readFileSync(cachePath, 'utf8');
119 } catch (error) {}
120 }
121 return null;
122}
123
124function writeCachedJavaScript(relativeCachePath, code) {
125 const cachePath = path.join(cacheDirectory, relativeCachePath);

Callers 2

compileFileAtPathFunction · 0.85
compile-cache.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected