summaryrefslogtreecommitdiff
path: root/node_modules/shebang-command/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/shebang-command/index.js')
-rw-r--r--node_modules/shebang-command/index.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/node_modules/shebang-command/index.js b/node_modules/shebang-command/index.js
deleted file mode 100644
index f35db30..0000000
--- a/node_modules/shebang-command/index.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-const shebangRegex = require('shebang-regex');
-
-module.exports = (string = '') => {
- const match = string.match(shebangRegex);
-
- if (!match) {
- return null;
- }
-
- const [path, argument] = match[0].replace(/#! ?/, '').split(' ');
- const binary = path.split('/').pop();
-
- if (binary === 'env') {
- return argument;
- }
-
- return argument ? `${binary} ${argument}` : binary;
-};