<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>Node.js</anon>
    <anon>JavaScript</anon>
    <anon>TypeScript</anon>
  </categories>
  <description>表題の通り。 DB に入っている文字列から末尾に / のあるパスを作りたかったが、最終的に path.resolve を通すと末尾の / が削除される import path from 'path'; path.resolve('/', '/foo/bar/'); // -&gt; /foo/bar The resulting path is normalized and trailing slashes are removed unless the path is resolved to the root directory. cf. Path | Node.js v22.0.0 Document…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2024%2F04%2F29%2F083000&quot; title=&quot;Node.js path.resolve は末尾の `/` が消える仕様になってる - かもメモ&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://m.media-amazon.com/images/I/41IQOQwLONL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-29 08:30:00</published>
  <title>Node.js path.resolve は末尾の `/` が消える仕様になってる</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2024/04/29/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
