Answers for "node.js name of file"

0

node js get file name without extension

filename.split('.').slice(0, -1).join('.')
Posted by: Guest on October-04-2020
1

node.js name of file

var path = require('path');
var scriptName = path.basename(__filename);
Posted by: Guest on November-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language