Nexus File Manager
v2.0
🏠
Dashboard
⚡
System
🌐
›
usr
›
lib
›
node_modules
›
npm
›
node_modules
›
prepend-http
Quick:
⬆️ Parent
🌐 Root
🏠 Home
🌍 WWW
📁 Temp
⚙️ Etc
📤 Upload
📁 Create
⚡ WordPress Admin
🔄 Refresh
✏️ index.js
← Back
'use strict'; module.exports = function (url) { if (typeof url !== 'string') { throw new TypeError('Expected a string, got ' + typeof url); } url = url.trim(); if (/^\.*\/|^(?!localhost)\w+:/.test(url)) { return url; } return url.replace(/^(?!(?:\w+:)?\/\/)/, 'http://'); };
💻
System Info
Current path
/usr/lib/node_modules/npm/node_modules/prepend-http
Contents
0 folders, 4 files
Disk free
99.20 GB
PHP version
8.3.30
🚀
Quick Actions
📍 Script location
🌐 Web root
🗑️ Temp
📁 /usr/lib/node_modules/npm/node_modules/prepend-http
⚡ Nexus File Manager • 4 items