Course contentsShow
← Node.js
Lesson 512 of 3,15912. Core Library Reference: Storage and Binary DataFree lesson

Node API: path.basename

The path.basename() method returns the last portion of a path , similar to the Unix basename command.

Writing your lesson…