Sha256: f4fa636144e19570263428bbddf590bd70d58a582bfd0e27caa50ff1393070ec

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

(function(program, execJS) { execJS(program) })(function(callback) { #{source}
}, function(program) {
  var output, print = function(string) {
    process.stdout.write('' + string);
  };

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
less-rb-0.0.1 lib/less/runner.js