<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>Node.js</anon>
    <anon>JavaScript</anon>
    <anon>Ajax</anon>
    <anon>XHR</anon>
  </categories>
  <description>node v11.4.0 fetchを使ったJavaScriptファイルをnodeの実行しようとしたらfetchなんて無いよってエラーになりました。 node.jsには現状デフォルトでFetchAPIが入っていないようです。 node-fetch を使う $ yarn add node-fetch JavaScriptファイルでnode-fetchを読み込んで後はブラウザと同じ使い方 const fetch = require('node-fetch'); fetch(url, {method: 'GET'}) .then((res) =&gt; console.log(res)) .catch((…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2019%2F01%2F23%2F083000&quot; title=&quot;Node.jsでFetchAPIを使いたい - かもメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/51fUoNYgjqL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-23 08:30:00</published>
  <title>Node.jsでFetchAPIを使いたい</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2019/01/23/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
