Skip to content

Instantly share code, notes, and snippets.

Tkc tkc

  • Japan
Block or report user

Report or block tkc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View node-fetch.js
// node6.2.2で実行するため、es2015記法
// パッケージimport
const fetch = require('node-fetch')
// get
fetch('https://github.com/')
.then((res) => res.text()) // プレーンテキスト
.then((body) => {
// githubのHTMLソースが表示される。
You can’t perform that action at this time.