Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check file extension in node js


  var path = require('path');

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

  console.log(ext); 
Source by www.staroceans.org.s3-website-us-east-1.amazonaws.com #
 
PREVIOUS NEXT
Tagged: #check #file #extension #node #js
ADD COMMENT
Topic
Name
2+2 =