UNPKG

snekfetch

Version:

Just do http requests without all that weird nastiness from other libs

19 lines (14 loc) 330 B
'use strict'; let syncify; try { syncify = require('@snek/syncify'); } catch (err) { throw new Error('Using sync requires @snek/syncify (npm install @snek/syncify)'); } const Snekfetch = require('.'); class SnekfetchSync extends Snekfetch { end() { return syncify(super.end()); } } module.exports = SnekfetchSync;