Answers for "nodejs get filename from url"

3

get filename from url js

var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);
Posted by: Guest on October-29-2020
0

javascript get filename from url

var filename = url.split('/').pop();
Posted by: Guest on February-14-2021
1

get file name nodejs

var path = require('path');
var scriptName = path.basename(__filename);
Posted by: Guest on October-18-2020
0

node js get file name without extension

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language