MCPcopy Index your code
hub / github.com/github-tools/github / loadInNode

Function loadInNode

test/fixtures/imageBlob.js:15–23  ·  view source on GitHub ↗
(imageReady)

Source from the content-addressed store, hash-verified

13}
14
15function loadInNode(imageReady) {
16 var fs = require('fs');
17 var path = require('path');
18
19 var imageBlob = fs.readFileSync(path.join(__dirname, 'gh.png')); // This is a Buffer().
20 var imageB64 = imageBlob.toString('base64');
21
22 imageReady(imageB64, imageBlob);
23}
24
25function loadInPhantom(imageReady) {
26 var xhr = new XMLHttpRequest();

Callers 1

loadImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…