daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Dec 15th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const fetch = require('node-fetch')
  2.  
  3. function getBody(url) {
  4.   return fetch(url)
  5.     .then(res => res.text())
  6. }
  7.  
  8. getBody("https://wykop.pl")
  9.   .then(console.log)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top