12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679 |
- microsoft/playwright-core
- THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
- This project incorporates components from the projects listed below. The original copyright notices and the licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
- - @types/node@17.0.24 (https://github.com/DefinitelyTyped/DefinitelyTyped)
- - @types/yauzl@2.10.0 (https://github.com/DefinitelyTyped/DefinitelyTyped)
- - agent-base@6.0.2 (https://github.com/TooTallNate/node-agent-base)
- - balanced-match@1.0.2 (https://github.com/juliangruber/balanced-match)
- - brace-expansion@1.1.11 (https://github.com/juliangruber/brace-expansion)
- - buffer-crc32@0.2.13 (https://github.com/brianloveswords/buffer-crc32)
- - codemirror@5.65.9 (https://github.com/codemirror/CodeMirror)
- - colors@1.4.0 (https://github.com/Marak/colors.js)
- - commander@8.3.0 (https://github.com/tj/commander.js)
- - concat-map@0.0.1 (https://github.com/substack/node-concat-map)
- - debug@4.3.4 (https://github.com/debug-js/debug)
- - define-lazy-prop@2.0.0 (https://github.com/sindresorhus/define-lazy-prop)
- - end-of-stream@1.4.4 (https://github.com/mafintosh/end-of-stream)
- - escape-string-regexp@2.0.0 (https://github.com/sindresorhus/escape-string-regexp)
- - extract-zip@2.0.1 (https://github.com/maxogden/extract-zip)
- - fd-slicer@1.1.0 (https://github.com/andrewrk/node-fd-slicer)
- - fs.realpath@1.0.0 (https://github.com/isaacs/fs.realpath)
- - get-stream@5.2.0 (https://github.com/sindresorhus/get-stream)
- - glob@7.2.0 (https://github.com/isaacs/node-glob)
- - graceful-fs@4.2.10 (https://github.com/isaacs/node-graceful-fs)
- - https-proxy-agent@5.0.0 (https://github.com/TooTallNate/node-https-proxy-agent)
- - inflight@1.0.6 (https://github.com/npm/inflight)
- - inherits@2.0.4 (https://github.com/isaacs/inherits)
- - ip@2.0.0 (https://github.com/indutny/node-ip)
- - is-docker@2.2.1 (https://github.com/sindresorhus/is-docker)
- - is-wsl@2.2.0 (https://github.com/sindresorhus/is-wsl)
- - jpeg-js@0.4.4 (https://github.com/eugeneware/jpeg-js)
- - mime@3.0.0 (https://github.com/broofa/mime)
- - minimatch@3.1.2 (https://github.com/isaacs/minimatch)
- - ms@2.1.2 (https://github.com/zeit/ms)
- - once@1.4.0 (https://github.com/isaacs/once)
- - open@8.4.0 (https://github.com/sindresorhus/open)
- - path-is-absolute@1.0.1 (https://github.com/sindresorhus/path-is-absolute)
- - pend@1.2.0 (https://github.com/andrewrk/node-pend)
- - pngjs@6.0.0 (https://github.com/lukeapage/pngjs)
- - progress@2.0.3 (https://github.com/visionmedia/node-progress)
- - proxy-from-env@1.1.0 (https://github.com/Rob--W/proxy-from-env)
- - pump@3.0.0 (https://github.com/mafintosh/pump)
- - retry@0.12.0 (https://github.com/tim-kos/node-retry)
- - rimraf@3.0.2 (https://github.com/isaacs/rimraf)
- - signal-exit@3.0.7 (https://github.com/tapjs/signal-exit)
- - smart-buffer@4.2.0 (https://github.com/JoshGlazebrook/smart-buffer)
- - socks-proxy-agent@6.1.1 (https://github.com/TooTallNate/node-socks-proxy-agent)
- - socks@2.7.0 (https://github.com/JoshGlazebrook/socks)
- - stack-utils@2.0.5 (https://github.com/tapjs/stack-utils)
- - wrappy@1.0.2 (https://github.com/npm/wrappy)
- - ws@8.4.2 (https://github.com/websockets/ws)
- - yauzl@2.10.0 (https://github.com/thejoshwolfe/yauzl)
- - yazl@2.5.1 (https://github.com/thejoshwolfe/yazl)
- %% @types/node@17.0.24 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- Copyright (c) Microsoft Corporation.
- 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
- =========================================
- END OF @types/node@17.0.24 AND INFORMATION
- %% @types/yauzl@2.10.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- Copyright (c) Microsoft Corporation.
- 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
- =========================================
- END OF @types/yauzl@2.10.0 AND INFORMATION
- %% agent-base@6.0.2 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- agent-base
- ==========
- ### Turn a function into an [`http.Agent`][http.Agent] instance
- [![Build Status](https://github.com/TooTallNate/node-agent-base/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-agent-base/actions?workflow=Node+CI)
- This module provides an `http.Agent` generator. That is, you pass it an async
- callback function, and it returns a new `http.Agent` instance that will invoke the
- given callback function when sending outbound HTTP requests.
- #### Some subclasses:
- Here's some more interesting uses of `agent-base`.
- Send a pull request to list yours!
- * [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP endpoints
- * [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS endpoints
- * [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS
- * [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
- Installation
- ------------
- Install with `npm`:
- ``` bash
- $ npm install agent-base
- ```
- Example
- -------
- Here's a minimal example that creates a new `net.Socket` connection to the server
- for every HTTP request (i.e. the equivalent of `agent: false` option):
- ```js
- var net = require('net');
- var tls = require('tls');
- var url = require('url');
- var http = require('http');
- var agent = require('agent-base');
- var endpoint = 'http://nodejs.org/api/';
- var parsed = url.parse(endpoint);
- // This is the important part!
- parsed.agent = agent(function (req, opts) {
- var socket;
- // `secureEndpoint` is true when using the https module
- if (opts.secureEndpoint) {
- socket = tls.connect(opts);
- } else {
- socket = net.connect(opts);
- }
- return socket;
- });
- // Everything else works just like normal...
- http.get(parsed, function (res) {
- console.log('"response" event!', res.headers);
- res.pipe(process.stdout);
- });
- ```
- Returning a Promise or using an `async` function is also supported:
- ```js
- agent(async function (req, opts) {
- await sleep(1000);
- // etc…
- });
- ```
- Return another `http.Agent` instance to "pass through" the responsibility
- for that HTTP request to that agent:
- ```js
- agent(function (req, opts) {
- return opts.secureEndpoint ? https.globalAgent : http.globalAgent;
- });
- ```
- API
- ---
- ## Agent(Function callback[, Object options]) → [http.Agent][]
- Creates a base `http.Agent` that will execute the callback function `callback`
- for every HTTP request that it is used as the `agent` for. The callback function
- is responsible for creating a `stream.Duplex` instance of some kind that will be
- used as the underlying socket in the HTTP request.
- The `options` object accepts the following properties:
- * `timeout` - Number - Timeout for the `callback()` function in milliseconds. Defaults to Infinity (optional).
- The callback function should have the following signature:
- ### callback(http.ClientRequest req, Object options, Function cb) → undefined
- The ClientRequest `req` can be accessed to read request headers and
- and the path, etc. The `options` object contains the options passed
- to the `http.request()`/`https.request()` function call, and is formatted
- to be directly passed to `net.connect()`/`tls.connect()`, or however
- else you want a Socket to be created. Pass the created socket to
- the callback function `cb` once created, and the HTTP request will
- continue to proceed.
- If the `https` module is used to invoke the HTTP request, then the
- `secureEndpoint` property on `options` _will be set to `true`_.
- License
- -------
- (The MIT License)
- Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
- 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.
- [http-proxy-agent]: https://github.com/TooTallNate/node-http-proxy-agent
- [https-proxy-agent]: https://github.com/TooTallNate/node-https-proxy-agent
- [pac-proxy-agent]: https://github.com/TooTallNate/node-pac-proxy-agent
- [socks-proxy-agent]: https://github.com/TooTallNate/node-socks-proxy-agent
- [http.Agent]: https://nodejs.org/api/http.html#http_class_http_agent
- =========================================
- END OF agent-base@6.0.2 AND INFORMATION
- %% balanced-match@1.0.2 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- (MIT)
- Copyright (c) 2013 Julian Gruber <julian@juliangruber.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.
- =========================================
- END OF balanced-match@1.0.2 AND INFORMATION
- %% brace-expansion@1.1.11 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- Copyright (c) 2013 Julian Gruber <julian@juliangruber.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.
- =========================================
- END OF brace-expansion@1.1.11 AND INFORMATION
- %% buffer-crc32@0.2.13 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License
- Copyright (c) 2013 Brian J. Brennan
- 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.
- =========================================
- END OF buffer-crc32@0.2.13 AND INFORMATION
- %% codemirror@5.65.9 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- Copyright (C) 2017 by Marijn Haverbeke <marijnh@gmail.com> and others
- 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.
- =========================================
- END OF codemirror@5.65.9 AND INFORMATION
- %% colors@1.4.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- Original Library
- - Copyright (c) Marak Squires
- Additional Functionality
- - 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.
- =========================================
- END OF colors@1.4.0 AND INFORMATION
- %% commander@8.3.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- (The MIT License)
- Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
- 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.
- =========================================
- END OF commander@8.3.0 AND INFORMATION
- %% concat-map@0.0.1 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- This software is released under the MIT license:
- 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.
- =========================================
- END OF concat-map@0.0.1 AND INFORMATION
- %% debug@4.3.4 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- (The MIT License)
- Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
- Copyright (c) 2018-2021 Josh Junon
- 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.
- =========================================
- END OF debug@4.3.4 AND INFORMATION
- %% define-lazy-prop@2.0.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- 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.
- =========================================
- END OF define-lazy-prop@2.0.0 AND INFORMATION
- %% end-of-stream@1.4.4 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) 2014 Mathias Buus
- 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.
- =========================================
- END OF end-of-stream@1.4.4 AND INFORMATION
- %% escape-string-regexp@2.0.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- 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.
- =========================================
- END OF escape-string-regexp@2.0.0 AND INFORMATION
- %% extract-zip@2.0.1 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- Copyright (c) 2014 Max Ogden and other contributors
- All rights reserved.
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- =========================================
- END OF extract-zip@2.0.1 AND INFORMATION
- %% fd-slicer@1.1.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- Copyright (c) 2014 Andrew Kelley
- 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.
- =========================================
- END OF fd-slicer@1.1.0 AND INFORMATION
- %% fs.realpath@1.0.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) Isaac Z. Schlueter and 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.
- ----
- This library bundles a version of the `fs.realpath` and `fs.realpathSync`
- methods from Node.js v0.10 under the terms of the Node.js MIT license.
- Node's license follows, also included at the header of `old.js` which contains
- the licensed code:
- Copyright Joyent, Inc. and other Node contributors.
- 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.
- =========================================
- END OF fs.realpath@1.0.0 AND INFORMATION
- %% get-stream@5.2.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
- =========================================
- END OF get-stream@5.2.0 AND INFORMATION
- %% glob@7.2.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) Isaac Z. Schlueter and 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.
- ## Glob Logo
- Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
- under a Creative Commons Attribution-ShareAlike 4.0 International License
- https://creativecommons.org/licenses/by-sa/4.0/
- =========================================
- END OF glob@7.2.0 AND INFORMATION
- %% graceful-fs@4.2.10 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and 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.
- =========================================
- END OF graceful-fs@4.2.10 AND INFORMATION
- %% https-proxy-agent@5.0.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- https-proxy-agent
- ================
- ### An HTTP(s) proxy `http.Agent` implementation for HTTPS
- [![Build Status](https://github.com/TooTallNate/node-https-proxy-agent/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-https-proxy-agent/actions?workflow=Node+CI)
- This module provides an `http.Agent` implementation that connects to a specified
- HTTP or HTTPS proxy server, and can be used with the built-in `https` module.
- Specifically, this `Agent` implementation connects to an intermediary "proxy"
- server and issues the [CONNECT HTTP method][CONNECT], which tells the proxy to
- open a direct TCP connection to the destination server.
- Since this agent implements the CONNECT HTTP method, it also works with other
- protocols that use this method when connecting over proxies (i.e. WebSockets).
- See the "Examples" section below for more.
- Installation
- ------------
- Install with `npm`:
- ``` bash
- $ npm install https-proxy-agent
- ```
- Examples
- --------
- #### `https` module example
- ``` js
- var url = require('url');
- var https = require('https');
- var HttpsProxyAgent = require('https-proxy-agent');
- // HTTP/HTTPS proxy to connect to
- var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
- console.log('using proxy server %j', proxy);
- // HTTPS endpoint for the proxy to connect to
- var endpoint = process.argv[2] || 'https://graph.facebook.com/tootallnate';
- console.log('attempting to GET %j', endpoint);
- var options = url.parse(endpoint);
- // create an instance of the `HttpsProxyAgent` class with the proxy server information
- var agent = new HttpsProxyAgent(proxy);
- options.agent = agent;
- https.get(options, function (res) {
- console.log('"response" event!', res.headers);
- res.pipe(process.stdout);
- });
- ```
- #### `ws` WebSocket connection example
- ``` js
- var url = require('url');
- var WebSocket = require('ws');
- var HttpsProxyAgent = require('https-proxy-agent');
- // HTTP/HTTPS proxy to connect to
- var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
- console.log('using proxy server %j', proxy);
- // WebSocket endpoint for the proxy to connect to
- var endpoint = process.argv[2] || 'ws://echo.websocket.org';
- var parsed = url.parse(endpoint);
- console.log('attempting to connect to WebSocket %j', endpoint);
- // create an instance of the `HttpsProxyAgent` class with the proxy server information
- var options = url.parse(proxy);
- var agent = new HttpsProxyAgent(options);
- // finally, initiate the WebSocket connection
- var socket = new WebSocket(endpoint, { agent: agent });
- socket.on('open', function () {
- console.log('"open" event!');
- socket.send('hello world');
- });
- socket.on('message', function (data, flags) {
- console.log('"message" event! %j %j', data, flags);
- socket.close();
- });
- ```
- API
- ---
- ### new HttpsProxyAgent(Object options)
- The `HttpsProxyAgent` class implements an `http.Agent` subclass that connects
- to the specified "HTTP(s) proxy server" in order to proxy HTTPS and/or WebSocket
- requests. This is achieved by using the [HTTP `CONNECT` method][CONNECT].
- The `options` argument may either be a string URI of the proxy server to use, or an
- "options" object with more specific properties:
- * `host` - String - Proxy host to connect to (may use `hostname` as well). Required.
- * `port` - Number - Proxy port to connect to. Required.
- * `protocol` - String - If `https:`, then use TLS to connect to the proxy.
- * `headers` - Object - Additional HTTP headers to be sent on the HTTP CONNECT method.
- * Any other options given are passed to the `net.connect()`/`tls.connect()` functions.
- License
- -------
- (The MIT License)
- Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
- 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.
- [CONNECT]: http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling
- =========================================
- END OF https-proxy-agent@5.0.0 AND INFORMATION
- %% inflight@1.0.6 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) Isaac Z. Schlueter
- 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.
- =========================================
- END OF inflight@1.0.6 AND INFORMATION
- %% inherits@2.0.4 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) Isaac Z. Schlueter
- 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.
- =========================================
- END OF inherits@2.0.4 AND INFORMATION
- %% ip@2.0.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- # IP
- [![](https://badge.fury.io/js/ip.svg)](https://www.npmjs.com/package/ip)
- IP address utilities for node.js
- ## Installation
- ### npm
- ```shell
- npm install ip
- ```
- ### git
- ```shell
- git clone https://github.com/indutny/node-ip.git
- ```
-
- ## Usage
- Get your ip address, compare ip addresses, validate ip addresses, etc.
- ```js
- var ip = require('ip');
- ip.address() // my ip address
- ip.isEqual('::1', '::0:1'); // true
- ip.toBuffer('127.0.0.1') // Buffer([127, 0, 0, 1])
- ip.toString(new Buffer([127, 0, 0, 1])) // 127.0.0.1
- ip.fromPrefixLen(24) // 255.255.255.0
- ip.mask('192.168.1.134', '255.255.255.0') // 192.168.1.0
- ip.cidr('192.168.1.134/26') // 192.168.1.128
- ip.not('255.255.255.0') // 0.0.0.255
- ip.or('192.168.1.134', '0.0.0.255') // 192.168.1.255
- ip.isPrivate('127.0.0.1') // true
- ip.isV4Format('127.0.0.1'); // true
- ip.isV6Format('::ffff:127.0.0.1'); // true
- // operate on buffers in-place
- var buf = new Buffer(128);
- var offset = 64;
- ip.toBuffer('127.0.0.1', buf, offset); // [127, 0, 0, 1] at offset 64
- ip.toString(buf, offset, 4); // '127.0.0.1'
- // subnet information
- ip.subnet('192.168.1.134', '255.255.255.192')
- // { networkAddress: '192.168.1.128',
- // firstAddress: '192.168.1.129',
- // lastAddress: '192.168.1.190',
- // broadcastAddress: '192.168.1.191',
- // subnetMask: '255.255.255.192',
- // subnetMaskLength: 26,
- // numHosts: 62,
- // length: 64,
- // contains: function(addr){...} }
- ip.cidrSubnet('192.168.1.134/26')
- // Same as previous.
- // range checking
- ip.cidrSubnet('192.168.1.134/26').contains('192.168.1.190') // true
- // ipv4 long conversion
- ip.toLong('127.0.0.1'); // 2130706433
- ip.fromLong(2130706433); // '127.0.0.1'
- ```
- ### License
- This software is licensed under the MIT License.
- Copyright Fedor Indutny, 2012.
- 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.
- =========================================
- END OF ip@2.0.0 AND INFORMATION
- %% is-docker@2.2.1 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
- =========================================
- END OF is-docker@2.2.1 AND INFORMATION
- %% is-wsl@2.2.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- 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.
- =========================================
- END OF is-wsl@2.2.0 AND INFORMATION
- %% jpeg-js@0.4.4 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- Copyright (c) 2014, Eugene Ware
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- 3. Neither the name of Eugene Ware nor the names of its contributors
- may be used to endorse or promote products derived from this software
- without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY EUGENE WARE ''AS IS'' AND ANY
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL EUGENE WARE BE LIABLE FOR ANY
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- =========================================
- END OF jpeg-js@0.4.4 AND INFORMATION
- %% mime@3.0.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) 2010 Benjamin Thomas, Robert Kieffer
- 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.
- =========================================
- END OF mime@3.0.0 AND INFORMATION
- %% minimatch@3.1.2 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) Isaac Z. Schlueter and 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.
- =========================================
- END OF minimatch@3.1.2 AND INFORMATION
- %% ms@2.1.2 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) 2016 Zeit, Inc.
- 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.
- =========================================
- END OF ms@2.1.2 AND INFORMATION
- %% once@1.4.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) Isaac Z. Schlueter and 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.
- =========================================
- END OF once@1.4.0 AND INFORMATION
- %% open@8.4.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- MIT License
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
- =========================================
- END OF open@8.4.0 AND INFORMATION
- %% path-is-absolute@1.0.1 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- 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.
- =========================================
- END OF path-is-absolute@1.0.1 AND INFORMATION
- %% pend@1.2.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (Expat)
- Copyright (c) 2014 Andrew Kelley
- 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.
- =========================================
- END OF pend@1.2.0 AND INFORMATION
- %% pngjs@6.0.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- pngjs2 original work Copyright (c) 2015 Luke Page & Original Contributors
- pngjs derived work Copyright (c) 2012 Kuba Niegowski
- 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.
- =========================================
- END OF pngjs@6.0.0 AND INFORMATION
- %% progress@2.0.3 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- (The MIT License)
- Copyright (c) 2017 TJ Holowaychuk <tj@vision-media.ca>
- 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.
- =========================================
- END OF progress@2.0.3 AND INFORMATION
- %% proxy-from-env@1.1.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License
- Copyright (C) 2016-2018 Rob Wu <rob@robwu.nl>
- 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.
- =========================================
- END OF proxy-from-env@1.1.0 AND INFORMATION
- %% pump@3.0.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) 2014 Mathias Buus
- 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.
- =========================================
- END OF pump@3.0.0 AND INFORMATION
- %% retry@0.12.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- Copyright (c) 2011:
- Tim Koschützki (tim@debuggable.com)
- Felix Geisendörfer (felix@debuggable.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.
- =========================================
- END OF retry@0.12.0 AND INFORMATION
- %% rimraf@3.0.2 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) Isaac Z. Schlueter and 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.
- =========================================
- END OF rimraf@3.0.2 AND INFORMATION
- %% signal-exit@3.0.7 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) 2015, 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.
- =========================================
- END OF signal-exit@3.0.7 AND INFORMATION
- %% smart-buffer@4.2.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) 2013-2017 Josh Glazebrook
- 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.
- =========================================
- END OF smart-buffer@4.2.0 AND INFORMATION
- %% socks-proxy-agent@6.1.1 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- socks-proxy-agent
- ================
- ### A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
- [![Build Status](https://github.com/TooTallNate/node-socks-proxy-agent/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-socks-proxy-agent/actions?workflow=Node+CI)
- This module provides an `http.Agent` implementation that connects to a
- specified SOCKS proxy server, and can be used with the built-in `http`
- and `https` modules.
- It can also be used in conjunction with the `ws` module to establish a WebSocket
- connection over a SOCKS proxy. See the "Examples" section below.
- Installation
- ------------
- Install with `npm`:
- ``` bash
- $ npm install socks-proxy-agent
- ```
- Examples
- --------
- #### TypeScript example
- ```ts
- import https from 'https';
- import { SocksProxyAgent } from 'socks-proxy-agent';
- const info = {
- host: 'br41.nordvpn.com',
- userId: 'your-name@gmail.com',
- password: 'abcdef12345124'
- };
- const agent = new SocksProxyAgent(info);
- https.get('https://jsonip.org', { agent }, (res) => {
- console.log(res.headers);
- res.pipe(process.stdout);
- });
- ```
- #### `http` module example
- ```js
- var url = require('url');
- var http = require('http');
- var SocksProxyAgent = require('socks-proxy-agent');
- // SOCKS proxy to connect to
- var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
- console.log('using proxy server %j', proxy);
- // HTTP endpoint for the proxy to connect to
- var endpoint = process.argv[2] || 'http://nodejs.org/api/';
- console.log('attempting to GET %j', endpoint);
- var opts = url.parse(endpoint);
- // create an instance of the `SocksProxyAgent` class with the proxy server information
- var agent = new SocksProxyAgent(proxy);
- opts.agent = agent;
- http.get(opts, function (res) {
- console.log('"response" event!', res.headers);
- res.pipe(process.stdout);
- });
- ```
- #### `https` module example
- ```js
- var url = require('url');
- var https = require('https');
- var SocksProxyAgent = require('socks-proxy-agent');
- // SOCKS proxy to connect to
- var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
- console.log('using proxy server %j', proxy);
- // HTTP endpoint for the proxy to connect to
- var endpoint = process.argv[2] || 'https://encrypted.google.com/';
- console.log('attempting to GET %j', endpoint);
- var opts = url.parse(endpoint);
- // create an instance of the `SocksProxyAgent` class with the proxy server information
- var agent = new SocksProxyAgent(proxy);
- opts.agent = agent;
- https.get(opts, function (res) {
- console.log('"response" event!', res.headers);
- res.pipe(process.stdout);
- });
- ```
- #### `ws` WebSocket connection example
- ``` js
- var WebSocket = require('ws');
- var SocksProxyAgent = require('socks-proxy-agent');
- // SOCKS proxy to connect to
- var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
- console.log('using proxy server %j', proxy);
- // WebSocket endpoint for the proxy to connect to
- var endpoint = process.argv[2] || 'ws://echo.websocket.org';
- console.log('attempting to connect to WebSocket %j', endpoint);
- // create an instance of the `SocksProxyAgent` class with the proxy server information
- var agent = new SocksProxyAgent(proxy);
- // initiate the WebSocket connection
- var socket = new WebSocket(endpoint, { agent: agent });
- socket.on('open', function () {
- console.log('"open" event!');
- socket.send('hello world');
- });
- socket.on('message', function (data, flags) {
- console.log('"message" event! %j %j', data, flags);
- socket.close();
- });
- ```
- License
- -------
- (The MIT License)
- Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
- 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.
- =========================================
- END OF socks-proxy-agent@6.1.1 AND INFORMATION
- %% socks@2.7.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) 2013 Josh Glazebrook
- 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.
- =========================================
- END OF socks@2.7.0 AND INFORMATION
- %% stack-utils@2.0.5 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) Isaac Z. Schlueter <i@izs.me>, James Talmage <james@talmage.io> (github.com/jamestalmage), and Contributors
- 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.
- =========================================
- END OF stack-utils@2.0.5 AND INFORMATION
- %% wrappy@1.0.2 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The ISC License
- Copyright (c) Isaac Z. Schlueter and 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.
- =========================================
- END OF wrappy@1.0.2 AND INFORMATION
- %% ws@8.4.2 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.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.
- =========================================
- END OF ws@8.4.2 AND INFORMATION
- %% yauzl@2.10.0 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) 2014 Josh Wolfe
- 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.
- =========================================
- END OF yauzl@2.10.0 AND INFORMATION
- %% yazl@2.5.1 NOTICES AND INFORMATION BEGIN HERE
- =========================================
- The MIT License (MIT)
- Copyright (c) 2014 Josh Wolfe
- 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.
- =========================================
- END OF yazl@2.5.1 AND INFORMATION
- SUMMARY BEGIN HERE
- =========================================
- Total Packages: 49
- =========================================
- END OF SUMMARY
|