how to get a extension of file in nodejs code example
Example: how to check file extension in node js
var path = require('path');
var ext = path.extname('/Users/Refsnes/demo_path.js');
console.log(ext);
var path = require('path');
var ext = path.extname('/Users/Refsnes/demo_path.js');
console.log(ext);