Some QOL improvements

This commit is contained in:
Wessel Damian Tip
2019-01-16 15:28:02 +01:00
parent ac9e338ffa
commit c3248bf0ef
4 changed files with 71 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
const w = require( './createRequest' );
;( async() => {
const r = await w( { url: 'https://aws.random.cat/meow' } ).send();
console.log( r.json() )
const r = await w( { url: 'https://aws.random.cat/meow', parse: 'json' } ).send();
console.log( r.body );
})();