darius

net server and client helpers

npm install darius
1 downloads in the last week
4 downloads in the last month

darius

NPM version Build Status Dependency Status Coverage Status

install

npm install darius

example

var darius = require('darius')

var server = darius.createServer().listen(9128, function () {
  console.log('server listening on port 9128')

  darius.post('127.0.0.1:9128/hello?from=client', {
    some_key: 'some_value'
  }, function (e) {
    if(!e) console.log('message sent')
  })
})

server.port('/:greeting', function (req) {
  assert.equal(req.params.greeting, 'hello')
  assert.equal(req.query.from, 'client')
  assert.equal(req.body.some_key, 'some_value')
})

license

MIT

npm loves you