{"url":"https://bouzuya.hatenablog.com/entry/2018/01/22/224335","categories":[],"version":"1.0","provider_url":"https://hatena.blog","height":"190","blog_url":"https://bouzuya.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2018%2F01%2F22%2F224335\" title=\"bouzuya/bath 2.1.0 \u3092\u3064\u304f\u3063\u305f - 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>","title":"bouzuya/bath 2.1.0 \u3092\u3064\u304f\u3063\u305f","published":"2018-01-22 22:43:35","type":"rich","image_url":null,"width":"100%","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/bouzuya/","description":"bouzuya/bath \u306e 2.1.0 \u3092\u3064\u304f\u3063\u305f\u3002 bath \u306f\u30b7\u30f3\u30d7\u30eb\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3002 path \u306e\u5c55\u958b\u3092\u306d\u3089\u3044\u3068\u3057\u3066\u3044\u308b\u3002\u2193\u306e\u3088\u3046\u306b\u4f7f\u3046\u3002 import * as assert from 'assert'; import { path } from 'bath'; assert(path('/users/{id}')({ id: '123' }) === '/users/123'); 2.1.0 \u306f names \u3092\u8ffd\u52a0\u3057\u305f\u3002 names \u306f path template \u306b\u542b\u307e\u308c\u308b parameter name \u306e\u914d\u5217\u3092\u8fd4\u3059\u3002 import * as assert from 'a\u2026","author_name":"bouzuya","blog_title":"bouzuya.hatenablog.com"}