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