분류
Nodejs
node-fetch - Node.js에 대한 window.fetch
본문
https://github.com/bitinn/node-fetch
fetch('https://github.com/') .then(res => res.text()) .then(body => console.log(body));
fetch('https://api.github.com/users/github') .then(res => res.json()) .then(json => console.log(json));
- 이전글flashheart - REST 클라이언트. 19.03.07
- 다음글superagent - HTTP 요청 라이브러리 19.03.07