How to get the extension of a file from the path in Node.js?
Originally Published Here ๐!
To get the extension of a file from a path, you can use the extname() method from the global path module in Node.js.
For example, let's say you have a path like myFolder/myFile.txt from which you need to get the extensio...
melvingeorge-me.hashnode.dev1 min read