MCPcopy Index your code
hub / github.com/ruipgil/scraperjs / execSjs

Function execSjs

test/commandLine.js:8–17  ·  view source on GitHub ↗
(more, callback)

Source from the content-addressed store, hash-verified

6 LH = 'http://localhost:3000';
7
8function execSjs(more, callback) {
9 var command = 'node ./bin/scraperjs ' + LH + '/hacker-news-clone ' + more;
10 exec(command, function(error, out, err) {
11 if(err || error) {
12 return;
13 } else {
14 callback(JSON.parse(out));
15 }
16 });
17}
18
19describe('Command line tool', function() {
20 describe('--text', function() {

Callers 1

commandLine.jsFile · 0.85

Calls 1

execFunction · 0.85

Tested by

no test coverage detected