<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>okazuki</author_name>
  <author_url>https://blog.hatena.ne.jp/okazuki/</author_url>
  <blog_title>かずきのBlog@hatena</blog_title>
  <blog_url>https://okazuki.hatenablog.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>Node.js v8.1 で util.promisify っていう関数が追加されてたんですね。 古き良き伝統にしたがったコールバック形式の関数を Promise を返す形にしてくれる。つまり await 出来るようになる！ nodejs.org ということで、今時コールバック形式のライブラリなんて…と思ってたら azure-storage がそれでした。 ということで使ってみよう。 使い方は簡単。 const f = util.promisify(hogehoge); のようにコールバック形式の関数を渡してやると Promise を返す関数になるので… await f(); とすれば OK。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fokazuki.hatenablog.com%2Fentry%2F2019%2F09%2F11%2F202906&quot; title=&quot;Promise 対応していないコールバック形式のライブラリーを Promise にしたい - かずきのBlog@hatena&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://cdn-ak.f.st-hatena.com/images/fotolife/o/okazuki/20190911/20190911202826.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-11 20:29:06</published>
  <title>Promise 対応していないコールバック形式のライブラリーを Promise にしたい</title>
  <type>rich</type>
  <url>https://okazuki.hatenablog.com/entry/2019/09/11/202906</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
