fetchman

1.0.1 • Public • Published

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"

/fetchman/

    Package Sidebar

    Install

    npm i fetchman

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • zephyr419