<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>amagitakayosi</author_name>
  <author_url>https://blog.hatena.ne.jp/amagitakayosi/</author_url>
  <blog_title>マルシテイア</blog_title>
  <blog_url>https://blog.amagi.dev/</blog_url>
  <categories>
  </categories>
  <description>ちょっとスクレイピングする機会があり、Nightmareでスクリプトを書いたんだけど、Promiseをベタベタ書いたりする必要があって面倒だった。 Node.js v7.6.0からはasync/awaitが使えるようになったけど、スクリプト全体をasync functionで囲んだり .catch() する必要があったりして、ノイズが多い。 というわけで、トップレベルにいきなり await を書いても実行できる async-node というコマンドを作った。 github.com インストール npm i -g @fand/async-node 使用例1) GIPHYから画像をダウンロード N…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.amagi.dev%2Fentry%2F2017%2F03%2F30%2F004017&quot; title=&quot;asyncを書くのも面倒なのでasync-nodeを作った - マルシテイア&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://cloud.githubusercontent.com/assets/1403842/24457202/7dca1bce-14d0-11e7-9df7-d1a674b46198.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-30 00:40:17</published>
  <title>asyncを書くのも面倒なのでasync-nodeを作った</title>
  <type>rich</type>
  <url>https://blog.amagi.dev/entry/2017/03/30/004017</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
