You've already forked setup-node
							
							
				mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 15:16:22 +07:00 
			
		
		
		
	Add auth
This commit is contained in:
		
							
								
								
									
										19
									
								
								node_modules/shebang-command/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								node_modules/shebang-command/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| '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 : '') | ||||
| 	); | ||||
| }; | ||||
							
								
								
									
										21
									
								
								node_modules/shebang-command/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/shebang-command/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| The MIT License (MIT) | ||||
|  | ||||
| Copyright (c) Kevin Martensson <kevinmartensson@gmail.com> (github.com/kevva) | ||||
|  | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
| of this software and associated documentation files (the "Software"), to deal | ||||
| in the Software without restriction, including without limitation the rights | ||||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
| copies of the Software, and to permit persons to whom the Software is | ||||
| furnished to do so, subject to the following conditions: | ||||
|  | ||||
| The above copyright notice and this permission notice shall be included in | ||||
| all copies or substantial portions of the Software. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
| THE SOFTWARE. | ||||
							
								
								
									
										75
									
								
								node_modules/shebang-command/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								node_modules/shebang-command/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,75 @@ | ||||
| { | ||||
|   "_args": [ | ||||
|     [ | ||||
|       "shebang-command@1.2.0", | ||||
|       "C:\\Users\\Administrator\\Documents\\setup-node" | ||||
|     ] | ||||
|   ], | ||||
|   "_development": true, | ||||
|   "_from": "shebang-command@1.2.0", | ||||
|   "_id": "shebang-command@1.2.0", | ||||
|   "_inBundle": false, | ||||
|   "_integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", | ||||
|   "_location": "/shebang-command", | ||||
|   "_phantomChildren": {}, | ||||
|   "_requested": { | ||||
|     "type": "version", | ||||
|     "registry": true, | ||||
|     "raw": "shebang-command@1.2.0", | ||||
|     "name": "shebang-command", | ||||
|     "escapedName": "shebang-command", | ||||
|     "rawSpec": "1.2.0", | ||||
|     "saveSpec": null, | ||||
|     "fetchSpec": "1.2.0" | ||||
|   }, | ||||
|   "_requiredBy": [ | ||||
|     "/cross-spawn" | ||||
|   ], | ||||
|   "_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", | ||||
|   "_spec": "1.2.0", | ||||
|   "_where": "C:\\Users\\Administrator\\Documents\\setup-node", | ||||
|   "author": { | ||||
|     "name": "Kevin Martensson", | ||||
|     "email": "kevinmartensson@gmail.com", | ||||
|     "url": "github.com/kevva" | ||||
|   }, | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/kevva/shebang-command/issues" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "shebang-regex": "^1.0.0" | ||||
|   }, | ||||
|   "description": "Get the command from a shebang", | ||||
|   "devDependencies": { | ||||
|     "ava": "*", | ||||
|     "xo": "*" | ||||
|   }, | ||||
|   "engines": { | ||||
|     "node": ">=0.10.0" | ||||
|   }, | ||||
|   "files": [ | ||||
|     "index.js" | ||||
|   ], | ||||
|   "homepage": "https://github.com/kevva/shebang-command#readme", | ||||
|   "keywords": [ | ||||
|     "cmd", | ||||
|     "command", | ||||
|     "parse", | ||||
|     "shebang" | ||||
|   ], | ||||
|   "license": "MIT", | ||||
|   "name": "shebang-command", | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "git+https://github.com/kevva/shebang-command.git" | ||||
|   }, | ||||
|   "scripts": { | ||||
|     "test": "xo && ava" | ||||
|   }, | ||||
|   "version": "1.2.0", | ||||
|   "xo": { | ||||
|     "ignores": [ | ||||
|       "test.js" | ||||
|     ] | ||||
|   } | ||||
| } | ||||
							
								
								
									
										39
									
								
								node_modules/shebang-command/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								node_modules/shebang-command/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,39 @@ | ||||
| # shebang-command [](https://travis-ci.org/kevva/shebang-command) | ||||
|  | ||||
| > Get the command from a shebang | ||||
|  | ||||
|  | ||||
| ## Install | ||||
|  | ||||
| ``` | ||||
| $ npm install --save shebang-command | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| ```js | ||||
| const shebangCommand = require('shebang-command'); | ||||
|  | ||||
| shebangCommand('#!/usr/bin/env node'); | ||||
| //=> 'node' | ||||
|  | ||||
| shebangCommand('#!/bin/bash'); | ||||
| //=> 'bash' | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## API | ||||
|  | ||||
| ### shebangCommand(string) | ||||
|  | ||||
| #### string | ||||
|  | ||||
| Type: `string` | ||||
|  | ||||
| String containing a shebang. | ||||
|  | ||||
|  | ||||
| ## License | ||||
|  | ||||
| MIT © [Kevin Martensson](http://github.com/kevva) | ||||
		Reference in New Issue
	
	Block a user
	 Danny McCormick
					Danny McCormick