{"author_name":"kikiki-kiki","title":"Node.js path.resolve \u306f\u672b\u5c3e\u306e `/` \u304c\u6d88\u3048\u308b\u4ed5\u69d8\u306b\u306a\u3063\u3066\u308b","categories":["Node.js","JavaScript","TypeScript"],"url":"https://chaika.hatenablog.com/entry/2024/04/29/083000","description":"\u8868\u984c\u306e\u901a\u308a\u3002 DB \u306b\u5165\u3063\u3066\u3044\u308b\u6587\u5b57\u5217\u304b\u3089\u672b\u5c3e\u306b / \u306e\u3042\u308b\u30d1\u30b9\u3092\u4f5c\u308a\u305f\u304b\u3063\u305f\u304c\u3001\u6700\u7d42\u7684\u306b path.resolve \u3092\u901a\u3059\u3068\u672b\u5c3e\u306e / \u304c\u524a\u9664\u3055\u308c\u308b import path from 'path'; path.resolve('/', '/foo/bar/'); // -> /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\u2026","published":"2024-04-29 08:30:00","blog_title":"\u304b\u3082\u30e1\u30e2","width":"100%","version":"1.0","author_url":"https://blog.hatena.ne.jp/kikiki-kiki/","provider_url":"https://hatena.blog","blog_url":"https://chaika.hatenablog.com/","image_url":"https://m.media-amazon.com/images/I/41IQOQwLONL._SL500_.jpg","height":"190","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2024%2F04%2F29%2F083000\" title=\"Node.js path.resolve \u306f\u672b\u5c3e\u306e `/` \u304c\u6d88\u3048\u308b\u4ed5\u69d8\u306b\u306a\u3063\u3066\u308b - \u304b\u3082\u30e1\u30e2\" 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"}