MCPcopy Index your code
hub / github.com/socketstream/socketstream / addCall

Function addCall

lib/client/formatters.js:62–74  ·  view source on GitHub ↗
(formatter)

Source from the content-addressed store, hash-verified

60 };
61
62 function addCall(formatter) {
63 formatter.call = function(path,options,cb,errCb) {
64 try{
65 formatter.compile(path,options,function(result) {
66 if (typeof result === 'string') { return cb(result); }
67 else { return errCb(result); }
68 },errCb);
69 }
70 catch(ex) {
71 return errCb(ex);
72 }
73 };
74 }
75};

Callers 1

formatters.jsFile · 0.85

Calls 1

cbFunction · 0.50

Tested by

no test coverage detected