shortstop-fetch
v1.0.0
Published
a simple shortstop handler to fetch remote data
Downloads
3
Readme
shortstop-fetch
Example
const Fetch = require('./');
const Shortstop = require('shortstop');
const resolver = Shortstop.create();
resolver.use('fetch', Fetch());
resolver.resolve(
{ ip: 'fetch:https://httpbin.org/ip' },
(err, { ip: {origin} }) => console.log(`Your IP: ${origin}`)
);