Sha256: ccf495e42d33432a6666ba1bf6fed4d8fa119c1530cad589ff1dd8aeee36f1e9

Contents?: true

Size: 520 Bytes

Versions: 10

Compression:

Stored size: 520 Bytes

Contents

#!/usr/bin/env node

require.paths.push(process.cwd());

var sys  = require('sys'),
    rest = require('../lib/restler'),
    repl = require('repl');
  
var replServer = repl.start();

var exportMethods = {
  sys: sys,
  rest: rest
}

Object.keys(exportMethods).forEach(function(exportMethod) {
  replServer.context[exportMethod] = exportMethods[exportMethod];
});

rest.get('http://twaud.io/api/v1/7.json').on('complete', function(data, response) {
  console.log(response.headers);
  replServer.context.data = data;
});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vulcan-0.3.0 server/node_modules/restler/bin/restler
vulcan-0.1.6 server/node_modules/restler/bin/restler
vulcan-0.1.5 server/node_modules/restler/bin/restler
vulcan-0.1.4 server/node_modules/restler/bin/restler
vulcan-0.1.3 server/node_modules/restler/bin/restler
vulcan-0.1.2 server/node_modules/restler/bin/restler
vulcan-0.1.1 server/node_modules/restler/bin/restler
vulcan-0.1.0 server/node_modules/restler/bin/restler
vulcan-0.0.3 server/node_modules/restler/bin/restler
vulcan-0.0.2 server/node_modules/restler/bin/restler