Server : LiteSpeed
System : Linux server900.shared.spaceship.host 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User : kvzyqrttyz ( 5084)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules/shebang-command/

📁 Create New:
⬆️ Upload File:
Current Dir [ Not Writable ] Root [ Not Writable ]


OR Upload from URL:
URL: Save as:

📄 File: index.js

Path: //opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules/shebang-command/index.js

Size: 346 B

Permissions: 0644

'use strict';
var shebangRegex = require('shebang-regex');

module.exports = function (str) {
	var match = str.match(shebangRegex);

	if (!match) {
		return null;
	}

	var arr = match[0].replace(/#! ?/, '').split(' ');
	var bin = arr[0].split('/').pop();
	var arg = arr[1];

	return (bin === 'env' ?
		arg :
		bin + (arg ? ' ' + arg : '')
	);
};

← Back to Directory Edit File 🔒 Chmod

WP File Manager