Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fetch = require('node-fetch')
- function getBody(url) {
- return fetch(url)
- .then(res => res.text())
- }
- getBody("https://wykop.pl")
- .then(console.log)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement