{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhfuji.hatenablog.jp%2Fentry%2F2017%2F06%2F10%2F001338\" title=\"Node.js 8.0.0 \u304b\u3089 promisify \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f - Fuji Haruka&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Javascript"],"blog_title":"Fuji Haruka's blog","width":"100%","height":"190","provider_url":"https://hatena.blog","version":"1.0","type":"rich","description":"Node.js 8.0.0 \u304b\u3089 util.promisify \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002 \u3053\u308c\u3067\u3001\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082 promisify \u304c\u3067\u304d\u308b\u3002 const { promisify } = require('util') const { readFile } = require('fs') const readFileAsync = promisify(readFile) async function main () { let buffer = await readFileAsync('hoge.txt') let text = buffer.toString() console\u2026","image_url":null,"title":"Node.js 8.0.0 \u304b\u3089 promisify \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f","url":"https://hfuji.hatenablog.jp/entry/2017/06/10/001338","published":"2017-06-10 00:13:38","provider_name":"Hatena Blog","blog_url":"https://hfuji.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/fuji_haruka/","author_name":"fuji_haruka"}