You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-11-04 16:56:40 +07:00 
			
		
		
		
	Initial pass
This commit is contained in:
		
							
								
								
									
										10
									
								
								node_modules/trim-right/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								node_modules/trim-right/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
module.exports = function (str) {
 | 
			
		||||
	var tail = str.length;
 | 
			
		||||
 | 
			
		||||
	while (/[\s\uFEFF\u00A0]/.test(str[tail - 1])) {
 | 
			
		||||
		tail--;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return str.slice(0, tail);
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										21
									
								
								node_modules/trim-right/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/trim-right/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,21 @@
 | 
			
		||||
The MIT License (MIT)
 | 
			
		||||
 | 
			
		||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
 | 
			
		||||
 | 
			
		||||
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.
 | 
			
		||||
							
								
								
									
										73
									
								
								node_modules/trim-right/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										73
									
								
								node_modules/trim-right/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,73 @@
 | 
			
		||||
{
 | 
			
		||||
  "_args": [
 | 
			
		||||
    [
 | 
			
		||||
      "trim-right@1.0.1",
 | 
			
		||||
      "C:\\Users\\Administrator\\Documents\\setup-python"
 | 
			
		||||
    ]
 | 
			
		||||
  ],
 | 
			
		||||
  "_development": true,
 | 
			
		||||
  "_from": "trim-right@1.0.1",
 | 
			
		||||
  "_id": "trim-right@1.0.1",
 | 
			
		||||
  "_inBundle": false,
 | 
			
		||||
  "_integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=",
 | 
			
		||||
  "_location": "/trim-right",
 | 
			
		||||
  "_phantomChildren": {},
 | 
			
		||||
  "_requested": {
 | 
			
		||||
    "type": "version",
 | 
			
		||||
    "registry": true,
 | 
			
		||||
    "raw": "trim-right@1.0.1",
 | 
			
		||||
    "name": "trim-right",
 | 
			
		||||
    "escapedName": "trim-right",
 | 
			
		||||
    "rawSpec": "1.0.1",
 | 
			
		||||
    "saveSpec": null,
 | 
			
		||||
    "fetchSpec": "1.0.1"
 | 
			
		||||
  },
 | 
			
		||||
  "_requiredBy": [
 | 
			
		||||
    "/@babel/generator"
 | 
			
		||||
  ],
 | 
			
		||||
  "_resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz",
 | 
			
		||||
  "_spec": "1.0.1",
 | 
			
		||||
  "_where": "C:\\Users\\Administrator\\Documents\\setup-python",
 | 
			
		||||
  "author": {
 | 
			
		||||
    "name": "Sindre Sorhus",
 | 
			
		||||
    "email": "sindresorhus@gmail.com",
 | 
			
		||||
    "url": "sindresorhus.com"
 | 
			
		||||
  },
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/sindresorhus/trim-right/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "description": "Similar to String#trim() but removes only whitespace on the right",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "ava": "0.0.4"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">=0.10.0"
 | 
			
		||||
  },
 | 
			
		||||
  "files": [
 | 
			
		||||
    "index.js"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/sindresorhus/trim-right#readme",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "trim",
 | 
			
		||||
    "right",
 | 
			
		||||
    "string",
 | 
			
		||||
    "str",
 | 
			
		||||
    "util",
 | 
			
		||||
    "utils",
 | 
			
		||||
    "utility",
 | 
			
		||||
    "whitespace",
 | 
			
		||||
    "space",
 | 
			
		||||
    "remove",
 | 
			
		||||
    "delete"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "name": "trim-right",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git+https://github.com/sindresorhus/trim-right.git"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "node test.js"
 | 
			
		||||
  },
 | 
			
		||||
  "version": "1.0.1"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										30
									
								
								node_modules/trim-right/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								node_modules/trim-right/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
# trim-right [](https://travis-ci.org/sindresorhus/trim-right)
 | 
			
		||||
 | 
			
		||||
> Similar to [`String#trim()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim) but removes only whitespace on the right
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Install
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ npm install --save trim-right
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
var trimRight = require('trim-right');
 | 
			
		||||
 | 
			
		||||
trimRight('  unicorn  ');
 | 
			
		||||
//=> '  unicorn'
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Related
 | 
			
		||||
 | 
			
		||||
- [`trim-left`](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## License
 | 
			
		||||
 | 
			
		||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
 | 
			
		||||
		Reference in New Issue
	
	Block a user