mirror of
				https://github.com/ButlerLogic/action-autotag.git
				synced 2025-10-31 07:16:25 +07:00 
			
		
		
		
	WIP
This commit is contained in:
		
							
								
								
									
										21
									
								
								node_modules/is-stream/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/is-stream/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| 'use strict'; | ||||
|  | ||||
| var isStream = module.exports = function (stream) { | ||||
| 	return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function'; | ||||
| }; | ||||
|  | ||||
| isStream.writable = function (stream) { | ||||
| 	return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object'; | ||||
| }; | ||||
|  | ||||
| isStream.readable = function (stream) { | ||||
| 	return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object'; | ||||
| }; | ||||
|  | ||||
| isStream.duplex = function (stream) { | ||||
| 	return isStream.writable(stream) && isStream.readable(stream); | ||||
| }; | ||||
|  | ||||
| isStream.transform = function (stream) { | ||||
| 	return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object'; | ||||
| }; | ||||
							
								
								
									
										21
									
								
								node_modules/is-stream/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/is-stream/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. | ||||
							
								
								
									
										70
									
								
								node_modules/is-stream/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										70
									
								
								node_modules/is-stream/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,70 @@ | ||||
| { | ||||
|   "_from": "is-stream@^1.1.0", | ||||
|   "_id": "is-stream@1.1.0", | ||||
|   "_inBundle": false, | ||||
|   "_integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", | ||||
|   "_location": "/is-stream", | ||||
|   "_phantomChildren": {}, | ||||
|   "_requested": { | ||||
|     "type": "range", | ||||
|     "registry": true, | ||||
|     "raw": "is-stream@^1.1.0", | ||||
|     "name": "is-stream", | ||||
|     "escapedName": "is-stream", | ||||
|     "rawSpec": "^1.1.0", | ||||
|     "saveSpec": null, | ||||
|     "fetchSpec": "^1.1.0" | ||||
|   }, | ||||
|   "_requiredBy": [ | ||||
|     "/execa" | ||||
|   ], | ||||
|   "_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", | ||||
|   "_shasum": "12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44", | ||||
|   "_spec": "is-stream@^1.1.0", | ||||
|   "_where": "/Users/cbutler/Workspace/OSS/node/@butlerlogic/action-autotag/node_modules/execa", | ||||
|   "author": { | ||||
|     "name": "Sindre Sorhus", | ||||
|     "email": "sindresorhus@gmail.com", | ||||
|     "url": "sindresorhus.com" | ||||
|   }, | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/sindresorhus/is-stream/issues" | ||||
|   }, | ||||
|   "bundleDependencies": false, | ||||
|   "deprecated": false, | ||||
|   "description": "Check if something is a Node.js stream", | ||||
|   "devDependencies": { | ||||
|     "ava": "*", | ||||
|     "tempfile": "^1.1.0", | ||||
|     "xo": "*" | ||||
|   }, | ||||
|   "engines": { | ||||
|     "node": ">=0.10.0" | ||||
|   }, | ||||
|   "files": [ | ||||
|     "index.js" | ||||
|   ], | ||||
|   "homepage": "https://github.com/sindresorhus/is-stream#readme", | ||||
|   "keywords": [ | ||||
|     "stream", | ||||
|     "type", | ||||
|     "streams", | ||||
|     "writable", | ||||
|     "readable", | ||||
|     "duplex", | ||||
|     "transform", | ||||
|     "check", | ||||
|     "detect", | ||||
|     "is" | ||||
|   ], | ||||
|   "license": "MIT", | ||||
|   "name": "is-stream", | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "git+https://github.com/sindresorhus/is-stream.git" | ||||
|   }, | ||||
|   "scripts": { | ||||
|     "test": "xo && ava" | ||||
|   }, | ||||
|   "version": "1.1.0" | ||||
| } | ||||
							
								
								
									
										42
									
								
								node_modules/is-stream/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								node_modules/is-stream/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,42 @@ | ||||
| # is-stream [](https://travis-ci.org/sindresorhus/is-stream) | ||||
|  | ||||
| > Check if something is a [Node.js stream](https://nodejs.org/api/stream.html) | ||||
|  | ||||
|  | ||||
| ## Install | ||||
|  | ||||
| ``` | ||||
| $ npm install --save is-stream | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| ```js | ||||
| const fs = require('fs'); | ||||
| const isStream = require('is-stream'); | ||||
|  | ||||
| isStream(fs.createReadStream('unicorn.png')); | ||||
| //=> true | ||||
|  | ||||
| isStream({}); | ||||
| //=> false | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## API | ||||
|  | ||||
| ### isStream(stream) | ||||
|  | ||||
| #### isStream.writable(stream) | ||||
|  | ||||
| #### isStream.readable(stream) | ||||
|  | ||||
| #### isStream.duplex(stream) | ||||
|  | ||||
| #### isStream.transform(stream) | ||||
|  | ||||
|  | ||||
| ## License | ||||
|  | ||||
| MIT © [Sindre Sorhus](https://sindresorhus.com) | ||||
		Reference in New Issue
	
	Block a user
	 Corey Butler
					Corey Butler