node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »


Dub Step

A kind of response middleware for expressjs.

Example step recipes coming soon.

A basic step used to set HTML title

  var title = function( title, function(req, res, step){
    res.title = 'Company -- ' + title;

A view renderer

  var html = function(req, res, step){
    res.send( '<html><title>'+res.title+'</title><body><h1>'+res.title+'</h1></html>' );
app.get('/home', function(req, res){
  res.dub.step( title( 'Home Page' ) )
         .step( html )

Run Tests

npm test


Released under the MIT(Poetic) Software license

This work 'as-is' we provide.
No warranty express or implied.
Therefore, no claim on us will abide.
Liability for damages denied.

Permission is granted hereby,
to copy, share, and modify.
Use as is fit,
free or for profit.
These rights, on this notice, rely.