From 9c9df658d9eea2e85f7f97eb5072586c9248aff4 Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Fri, 19 Jul 2024 11:49:59 +0000 Subject: [PATCH] feat(tags): add relative paths base tag --- tags/tags.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tags/tags.toml b/tags/tags.toml index 99a7e39..85c93c0 100644 --- a/tags/tags.toml +++ b/tags/tags.toml @@ -1187,3 +1187,11 @@ Discord does not provide the invite that a member used to join through the bot A - Tracking the uses of invites through the `inviteCreate` and `guildMemberAdd` events is unreliable and we recommend against it. - Discord has not shared any plans to make the members tab available for bots. """ + +[relative-paths-base] +keywords = ["require", "node-fs", "relative-paths", "base-path"] +content = """ +Relative paths base: +- [`require`](https://nodejs.org/api/modules.html#requireid) resolves relative paths based on the file's location. +- [`fs`](https://nodejs.org/api/fs.html) methods (e.g. [`fs.readFile`](https://nodejs.org/api/fs.html#fspromisesreadfilepath-options)) resolve paths based on the current working directory. +"""