Answers for "how to check the extension of the file in node js"

4

how to check file extension in node js

var path = require('path');

var ext = path.extname('/Users/Refsnes/demo_path.js');

  console.log(ext);
Posted by: Guest on July-27-2020
1

how to check the extension of a file in javascript

return filename.split('.').pop();
Posted by: Guest on February-17-2021

Code answers related to "how to check the extension of the file in node js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language