Open humphd opened 3 years ago
The built-in node path module has lots of methods to help you work with parts of a filename, so you don't have to do string manipulation.
https://github.com/AmasiaNalbandian/static-site-generator/blob/main/src/main.js#L117 is another example
The built-in node path module has lots of methods to help you work with parts of a filename, so you don't have to do string manipulation.