{"height":"190","version":"1.0","blog_url":"https://bouzuya.hatenablog.com/","author_name":"bouzuya","url":"https://bouzuya.hatenablog.com/entry/2017/03/01/231613","provider_url":"https://hatena.blog","description":"\u4eca\u65e5\u306f bouzuya/bath \u306e 2.x \u3092\u3064\u304f\u3063\u3066\u3044\u305f\u3002 path-to-regexp \u306e\u6a5f\u80fd\u304b\u3089\u4e0d\u8981\u306a\u3082\u306e\u3092\u524a\u3063\u3066\u81ea\u524d\u3067\u5b9f\u88c5\u3059\u308b\u3002\u5b9f\u884c\u30a4\u30e1\u30fc\u30b8\u306f\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3002 import * as assert from 'assert'; import { params } from 'bath/params'; const p1 = params('/users/{id}'); assert.deepEqual(p1('/users/123'), { id: '123' }); assert.deepEqual(p2('/users/abc'), { id: 'abc' }); const p\u2026","type":"rich","width":"100%","image_url":null,"title":"bouzuya/bath 2.x \u3092\u3064\u304f\u3063\u3066\u3044\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2017%2F03%2F01%2F231613\" title=\"bouzuya/bath 2.x \u3092\u3064\u304f\u3063\u3066\u3044\u308b - bouzuya.hatenablog.com\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","published":"2017-03-01 23:16:13","author_url":"https://blog.hatena.ne.jp/bouzuya/","blog_title":"bouzuya.hatenablog.com","categories":[]}