Skip to content

timneutkens/superagent-suffix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

#Superagent Suffix Middleware Middleware to add a suffix to superagent request url

##Installation

npm install --save superagent-suffix

##Example

var request = require('superagent');
// For example purposes
var prefix = require('superagent-prefix');
var suffix = require('superagent-suffix');
request
  .get('/products')
  .use(prefix('https://www.example.com/'))
  .use(suffix('.json'))
  .end(function(err, res) {
    // Result from https://www.example.com/products.json
    console.log(res);
  });

About

Middleware to add a suffix to superagent request url

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published