UNPKG

check-ethereum-scanner

Version:

Safety checks for new Ethereum tokens

13 lines (12 loc) 321 B
module.exports = getResponse function getResponse (opt, resp) { if (!resp) return null return { statusCode: resp.statusCode, headers: resp.headers, method: opt.method, url: opt.url, // the XHR object in browser, http response in Node rawRequest: resp.rawRequest ? resp.rawRequest : resp } }