|
⇤ ← Revision 1 as of 2023-02-24 20:18:19
Size: 776
Comment:
|
Size: 864
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 109: | Line 109: |
| ---- == See also == [[https://nodejs.org/api/path.html|Node API for path]] |
Node Path
Contents
BaseName
Delimiter
DirName
ExtName
Format
IsAbsolute
Join
const os = require("os");
const path = require("path");
const myDocuments = path.join(os.homedir(), "Documents");
Normalize
Parse
Posix
Relative
const path = require("path");
function relativeDocumentPath(filename) {
return path.relative(myDocuments, filename);
}
Resolve
Sep
ToNamespacedPath
Win32
