Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

HOOQTV/blackadder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackadder

Migrated to https://github.coupang.net/coupang/couplay-blackadder

Async Flashheart

API

Using async-await,

const client = new Blackadder(),
    { body } = await client.get('http://hihi.com/haha.json');

Promise?

const Blackadder = require('blackadder').default,
    client = new Blackadder();
    client.get('http://hihi.com/haha.json')
        .then((res) => { console.log(res.body); console.log(res.response); })
        .catch((err)) => { console.log(err); });

Credits

  • Copyright © 2016 HOOQ Digital Pte. Ltd. and project authors.
  • Licensed under MIT