diff --git a/docs/global.html b/docs/global.html index cf48b1d..90874c8 100644 --- a/docs/global.html +++ b/docs/global.html @@ -565,7 +565,7 @@
Simple POST:
data: { hey: 'hi' } -})const p = require('phin').unpromisified
+})
const p = require('phin').unpromisified
p('https://ethanent.me', (err, res) => {
if (!err) console.log(res.body)
@@ -77,7 +77,7 @@ Quick Demos
Simple POST:
'parse': 'json'
})
-console.log(res.body.first)
const ppostjson = p.defaults({
+console.log(res.body.first)
const ppostjson = p.defaults({
'method': 'POST',
'parse': 'json',
'timeout': 2000
@@ -88,7 +88,7 @@ Quick Demos
Simple POST:
const res = await ppostjson('https://ethanent.me/somejson')
// ^ An options object could also be used here to set other options.
-// Do things with res.body?
phin allows you to set core HTTP options.
+// Do things with res.body?phin allows you to set core HTTP options.
await p({
'url': 'https://ethanent.me/name',
'core': {
@@ -160,7 +160,7 @@ Home
Global
+module.exports = phin
+
@@ -140,7 +141,7 @@