Introduction the to Path Module in Node.js

1 · · July 10, 2019, 8:21 p.m.
Many people forget about one of Node’s most useful built-in modules, the path module. It’s a module with methods that help you deal with file and directory path names on the machine’s filesystem. In this article, we’re going to look at five of the tools path provides. Before we can start using the path module, we have to require it: const path = require('path'); Something of note: path works a little bit differently depending on your OS, but that's beyond the scope of this article. To read...