1.0.1 • Published 9 years ago

fetchman v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

Fetchman

Simple fetch api for client and node

install

npm install fetchman -S

usage

var fetchman = require('fetchman')

/**
 * Fetcher
 * @param  {String} url      remote api url
 * @param  {Object} opts     fetch options
 * @return {Function}
 */

var remoteFoo = fetchman('/foo',{token:'bar'})

remoteFoo.get() // also post,put,delete,patch
remoteFoo(1).get() // will fetch resource "/foo/1"
1.0.1

9 years ago

1.0.0

9 years ago