Skip to content
Create a request function with your own defaults.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
t
.gitignore
LICENSE
defReq.js
package.json
readme.md

readme.md

defReq

A simple wrapper around request, to set your own defaults.

var defReq = require('def-req')

defReq(opts)

Returns a function that takes options and an optional callback, merges the two options objects together, and passes them to request.

Copyright 2013 Nick Niemeir nick.niemeir@gmail.com

License: MIT

Something went wrong with that request. Please try again.