Sha256: d335accd885da04d293db29a60bd34c409f2905a2ad61d3682bf16b111fa3ce4

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

var output, print = function(string) {
  process.stdout.write('' + string);
};

(function(program, execJS) { execJS(program) })(
  function(callback) { #{source} },
  function(program) {
    program(function(err, result){
      if(err) {
        print(JSON.stringify(['err', err, err.stack]));
      } else {
        if (typeof result == 'undefined' && result !== null) {
          print('["ok"]');
        } else {
          print(JSON.stringify(['ok', result]));
        }
      }
    });
  }
);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
less-execjs-2.6.0.4 lib/less/runner.js
less-execjs-2.6.0.3 lib/less/runner.js