mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-31 07:16:22 +07:00 
			
		
		
		
	init
This commit is contained in:
		
							
								
								
									
										26
									
								
								node_modules/require-main-filename/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								node_modules/require-main-filename/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | ||||
| # Change Log | ||||
|  | ||||
| All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||||
|  | ||||
| <a name="2.0.0"></a> | ||||
| # [2.0.0](https://github.com/yargs/require-main-filename/compare/v1.0.2...v2.0.0) (2019-01-28) | ||||
|  | ||||
|  | ||||
| ### Chores | ||||
|  | ||||
| * drop support for Node 0.10 ([#11](https://github.com/yargs/require-main-filename/issues/11)) ([87f4e13](https://github.com/yargs/require-main-filename/commit/87f4e13)) | ||||
|  | ||||
|  | ||||
| ### BREAKING CHANGES | ||||
|  | ||||
| * drop support for Node 0.10/0.12 | ||||
|  | ||||
|  | ||||
|  | ||||
| <a name="1.0.2"></a> | ||||
| ## [1.0.2](https://github.com/yargs/require-main-filename/compare/v1.0.1...v1.0.2) (2017-06-16) | ||||
|  | ||||
|  | ||||
| ### Bug Fixes | ||||
|  | ||||
| * add files to package.json ([#4](https://github.com/yargs/require-main-filename/issues/4)) ([fa29988](https://github.com/yargs/require-main-filename/commit/fa29988)) | ||||
							
								
								
									
										14
									
								
								node_modules/require-main-filename/LICENSE.txt
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								node_modules/require-main-filename/LICENSE.txt
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| Copyright (c) 2016, Contributors | ||||
|  | ||||
| Permission to use, copy, modify, and/or distribute this software | ||||
| for any purpose with or without fee is hereby granted, provided | ||||
| that the above copyright notice and this permission notice | ||||
| appear in all copies. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES | ||||
| OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE | ||||
| LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES | ||||
| OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||||
| WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | ||||
| ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
							
								
								
									
										26
									
								
								node_modules/require-main-filename/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								node_modules/require-main-filename/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | ||||
| # require-main-filename | ||||
|  | ||||
| [](https://travis-ci.org/yargs/require-main-filename) | ||||
| [](https://coveralls.io/r/yargs/require-main-filename?branch=master) | ||||
| [](https://www.npmjs.com/package/require-main-filename) | ||||
|  | ||||
| `require.main.filename` is great for figuring out the entry | ||||
| point for the current application. This can be combined with a module like | ||||
| [pkg-conf](https://www.npmjs.com/package/pkg-conf) to, _as if by magic_, load | ||||
| top-level configuration. | ||||
|  | ||||
| Unfortunately, `require.main.filename` sometimes fails when an application is | ||||
| executed with an alternative process manager, e.g., [iisnode](https://github.com/tjanczuk/iisnode). | ||||
|  | ||||
| `require-main-filename` is a shim that addresses this problem. | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| ```js | ||||
| var main = require('require-main-filename')() | ||||
| // use main as an alternative to require.main.filename. | ||||
| ``` | ||||
|  | ||||
| ## License | ||||
|  | ||||
| ISC | ||||
							
								
								
									
										18
									
								
								node_modules/require-main-filename/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								node_modules/require-main-filename/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,18 @@ | ||||
| module.exports = function (_require) { | ||||
|   _require = _require || require | ||||
|   var main = _require.main | ||||
|   if (main && isIISNode(main)) return handleIISNode(main) | ||||
|   else return main ? main.filename : process.cwd() | ||||
| } | ||||
|  | ||||
| function isIISNode (main) { | ||||
|   return /\\iisnode\\/.test(main.filename) | ||||
| } | ||||
|  | ||||
| function handleIISNode (main) { | ||||
|   if (!main.children.length) { | ||||
|     return main.filename | ||||
|   } else { | ||||
|     return main.children[0].filename | ||||
|   } | ||||
| } | ||||
							
								
								
									
										68
									
								
								node_modules/require-main-filename/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								node_modules/require-main-filename/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,68 @@ | ||||
| { | ||||
|   "_args": [ | ||||
|     [ | ||||
|       "require-main-filename@2.0.0", | ||||
|       "E:\\python\\setup-php" | ||||
|     ] | ||||
|   ], | ||||
|   "_development": true, | ||||
|   "_from": "require-main-filename@2.0.0", | ||||
|   "_id": "require-main-filename@2.0.0", | ||||
|   "_inBundle": false, | ||||
|   "_integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", | ||||
|   "_location": "/require-main-filename", | ||||
|   "_phantomChildren": {}, | ||||
|   "_requested": { | ||||
|     "type": "version", | ||||
|     "registry": true, | ||||
|     "raw": "require-main-filename@2.0.0", | ||||
|     "name": "require-main-filename", | ||||
|     "escapedName": "require-main-filename", | ||||
|     "rawSpec": "2.0.0", | ||||
|     "saveSpec": null, | ||||
|     "fetchSpec": "2.0.0" | ||||
|   }, | ||||
|   "_requiredBy": [ | ||||
|     "/test-exclude", | ||||
|     "/yargs" | ||||
|   ], | ||||
|   "_resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", | ||||
|   "_spec": "2.0.0", | ||||
|   "_where": "E:\\python\\setup-php", | ||||
|   "author": { | ||||
|     "name": "Ben Coe", | ||||
|     "email": "ben@npmjs.com" | ||||
|   }, | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/yargs/require-main-filename/issues" | ||||
|   }, | ||||
|   "description": "shim for require.main.filename() that works in as many environments as possible", | ||||
|   "devDependencies": { | ||||
|     "chai": "^4.0.0", | ||||
|     "standard": "^10.0.3", | ||||
|     "standard-version": "^4.0.0", | ||||
|     "tap": "^11.0.0" | ||||
|   }, | ||||
|   "files": [ | ||||
|     "index.js" | ||||
|   ], | ||||
|   "homepage": "https://github.com/yargs/require-main-filename#readme", | ||||
|   "keywords": [ | ||||
|     "require", | ||||
|     "shim", | ||||
|     "iisnode" | ||||
|   ], | ||||
|   "license": "ISC", | ||||
|   "main": "index.js", | ||||
|   "name": "require-main-filename", | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "git+ssh://git@github.com/yargs/require-main-filename.git" | ||||
|   }, | ||||
|   "scripts": { | ||||
|     "pretest": "standard", | ||||
|     "release": "standard-version", | ||||
|     "test": "tap --coverage test.js" | ||||
|   }, | ||||
|   "version": "2.0.0" | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Shivam Mathur
					Shivam Mathur