Node Path


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


See also

Node API for path


CategoryRicottone

Node/Path (last edited 2023-02-24 21:00:47 by DominicRicottone)