1.0.0 • Published 13 days ago

@diahkomalasarinpm/vitae-aperiam-cum v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

CI browser tests NPM version npm downloads Known Vulnerabilities Codacy Badge Coverage Status Minified size

readable-web-to-node-stream

Converts a Web-API readable stream into a Node.js readable stream.

Installation

Install via npm:

npm install readable-web-to-node-stream

or yarn:

yarn add readable-web-to-node-stream

Compatibility

Source is written in TypeScript and compiled to ECMAScript 2017 (ES8).

Unit tests are performed on the following browsers:

  • Latest Google Chrome 74.0

Example

Import readable-web-stream-to-node in JavaScript:

const {ReadableWebToNodeStream} = require('readable-web-to-node-stream');

async function download(url) {
    const response = await fetch(url);
    const readableWebStream = response.body;
    const nodeStream = new ReadableWebToNodeStream(readableWebStream);
}

API

constructor(stream: ReadableStream): Promise

stream: ReadableStream: the Web-API readable stream.

close(): Promise Will cancel close the Readable-node stream, and will release Web-API-readable-stream.

waitForReadToComplete(): Promise If there is no unresolved read call to Web-API Readable​Stream immediately returns, otherwise it will wait until the read is resolved.

Licence

(The MIT License)

Copyright (c) 2019 Borewit

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.

validatebrowserslistdirnameruntimepathdatehandlersreact-hooksstylingfastaccessibilityletECMAScript 6eventEmitterkoreanwordbreakio-tstypeofnopeprocessdatawatcherduplexsetPrototypeOfECMAScript 7ttytypanionartbindglobaccessorvestecmascriptthroatWeakMapargvrequirefile systemharmonyindicatorIteratorwaapiargumenttypedarrayObject.isreact-hook-formRegExp#flagscode pointspicomatchflagsECMAScript 2022iterationassertstestArray.prototype.findLaststylesheetcorshardlinksES2015ReactiveExtensionstc39loadingsharedarraybuffersyntaxerrorterminalcolorinstallsequencerm -fr0ReactiveXfindupcommandTypedArrayautoprefixerbootstrap cssArrayBuffer@@toStringTagSetfastclonegradients csstrimRightECMAScript 2020writablefpnpmcoercibletsjQuerygetPrototypeOfes-shim APIvariables in cssawesomesaucepasswordsignalsregexpYAMLspinnerobjectESnextES3queryHyBifast-cloneworkspace:*fast-copyArray.prototype.containsURLsuperagentcodesobjmovedayjsArray.prototype.flatMaplengthECMAScript 2019yamlfunctionmodulesjsformattingajaxTypeScriptincludesECMAScript 2021rgbcopyCSSStyleDeclarationbundler[[Prototype]]extensionsigtermrm -rfUint8ClampedArraydeepcopyloggingdefinePropertyairbnbinspectserializetacitprivate datatoobjectawait6to5reusepropertybannerlrufunctionalvarRxtypeerrormetadatalinkreduxjoirangeerrorwatchingES2016__proto__babel-coredotenvgesturesmochautilES2017utilitybusycolorsRegExp.prototype.flagsfilterflagguidtypescriptBigInt64Arrayisprotocol-buffersreactlistenerscomputed-typespostcss-plugintypeprettytapeslotstablepolyfillchineseECMAScript 2016Int32Arraycheckregular expressionsconcurrencyObject.assignframeworkavaextravariablesless mixinssetstdlibfast-deep-cloneString.prototype.matchAllcall-boundvalueshookformformssymbolspromisessigintinferencetestingweakmapinternal slotwatchconsoleUint32ArrayAsyncIteratorrequestphonegetintrinsicregularclassnamessafechaimime-dbbytehooksES2022byteOffsetcssratelimitregular expressionlookprogressexpressionsearchinterruptslimitedtslibvalidclass-validatorlessutil.inspectescapecomparereadablehasOwnevents-0stringifierapolloreal-timehttpslintdiffauthenticationremoveInt8Array$.extendspringreadchromiumscheme-validationesWeakSetpositivegetOwnPropertyDescriptorECMAScript 2017deterministicexit-codeWebSocketbluebirdArrayES8toStringTagsidespinnerseslintplugincharactersfullECMAScript 5quotenodeJSON-SchemafromisConcatSpreadabledeep-copystarterflatthrottleiteratecss-in-jswalkingconcatMapjsonschemaPushbcryptwatchFileequalityquerystringcss lessconcatgdprfindLastsetImmediatesyntaxstringifyhashpackagestringjson-schema-validationtextminimalclassnameURLSearchParamsdatastructurepruneUint16Arraypackage.jsonpropertiesmixinsdebuggerperformanttoolsstyle256threeparserinternalmkdirspushgetterstreamsECMAScript 2015redactpreserve-symlinksxtermshimenvironmentarraysirqyupes2016error-handlingwarninges5channelfantasy-landdragECMAScript 2018toSortedlimitrfc4122stylesenvemojimimetrimstyleguidesymlinkBigUint64ArrayES2018performanceArray.prototype.filterpreprocessorCSSfscirculartrimLeftmergefull-widthnegativees7shrinkwrapmapECMAScript 2023superstructtoArraywhatwg3dtranspilemobileconfigurablechromeconsumeomitoperating-systemasyncString.prototype.trimjsonpathfastcopyassignclonegradients css3uninstallprototypesetterflattenArrayBuffer#slicecollectionbyteLengthnested cssObject.keysparentsbootstrap lessequalfullwidthtaskforEachrmdircss variablecommand-linezodpackage managerbrowserlistObservableqsxhrvalidationcore-jsserializerbrowsersortedreact animationi18nfetchexeccryptofindLastIndexdomcolumnssortgroupBysettingscolumnmulti-packagevalueviewbatchextendtrimStartjapanesedropnodejsfindmatchAllFloat32ArrayemitwriteFunction.prototype.namepopmotionjsxvalidatortypedarrayskeysformdescriptionObject.getPrototypeOfpatchtypespipeefficientsomeES7genericsuser-streamsformatuptoolkitintrinsicnegative zerosanitizeopenenumerablees6Array.prototype.findLastIndexcharacterless csscontainsqueueMicrotaskgraphqlcensorschemaonceiemomentcallbackerrorweaksetxssbufferdescriptorsarrayreact posel10nmimetypesfastifyES2021json-schemaa11yencryptionconsturlcjkless compilerajvstreameast-asian-widthexpressStyleSheetReflect.getPrototypeOfhigher-orderUnderscoreArray.prototype.includesjsdomnumberform-validationslicepackagesbabelSymbol.toStringTagObjectstatusMicrosoftjsonproppoint-freeapimakeboundjson-schema-validatorvisualdeepclonepersistentnamesentriesredux-toolkitnativeastprivatefiglettrimEndUint8Arraywalkjsdifftakeiteratordefinemake dirmkdirpconfigless.jses2018ponyfilltraverseObject.fromEntriesinvariantkarmafast-deep-copytyped arrayECMAScript 3matchescallbindjwtjasminetimeInt16ArrayES6offsetlastJSONmiddlewaredescriptordependency managerloggerbuffersrmutilssanitizationpnpm9queueeventDispatcherposewaitreduceoptimistfiledirectoryrobustlesscsspromiseeslint-pluginFloat64Arraylibphonenumber.envlockfileStreamscolourlinewrapcall-bindstructuredCloneidleassertcommandertelephonemkdirlazyauthpluginprefixgetestreeconnectWebSocketswhichshellTypeBoxlinuxwordwrapmruhttppostcssstyled-componentses8ES2023callboundsameValueZerorandomclishamArray.prototype.flatmacosObservablesclientregextypedzeroreducerdeleteparsetesteroptionES2019javascriptfunctionswidthargparseschemecreatecryptascii
@crabas0npm/nihil-alias-sint@crabas0npm/voluptas-ad-vel@diahkomalasarinpm/a-quam-voluptas-qui@diahkomalasarinpm/ad-molestias-fugit-sunt@diahkomalasarinpm/animi-facere-velit-dolorum@diahkomalasarinpm/asperiores-accusantium-minus-quod@diahkomalasarinpm/blanditiis-ullam-a-fugiat@diahkomalasarinpm/consectetur-ad-repudiandae-delectus@diahkomalasarinpm/corporis-a-quam-distinctio@diahkomalasarinpm/corrupti-autem-optio-iure@diahkomalasarinpm/cumque-nesciunt-non-eos@diahkomalasarinpm/debitis-explicabo-sunt-enim@diahkomalasarinpm/debitis-quas-fuga-occaecati@diahkomalasarinpm/deserunt-cupiditate-quos-beatae@diahkomalasarinpm/dolorem-tempore-vitae-animi@diahkomalasarinpm/eveniet-velit-praesentium-dolorem@diahkomalasarinpm/harum-esse-officiis-magnam@diahkomalasarinpm/harum-nihil-exercitationem-delectus@diahkomalasarinpm/illum-molestias-accusantium-rem@diahkomalasarinpm/incidunt-repudiandae-expedita-eos@diahkomalasarinpm/iure-asperiores-perspiciatis-mollitia@diahkomalasarinpm/magnam-incidunt-error-sapiente@diahkomalasarinpm/nesciunt-expedita-rerum-cumque@diahkomalasarinpm/occaecati-incidunt-dolor-accusantium@diahkomalasarinpm/omnis-veritatis-asperiores-recusandae@diahkomalasarinpm/praesentium-accusamus-maiores-autem@diahkomalasarinpm/provident-eaque-consectetur-harum@diahkomalasarinpm/sapiente-quibusdam-repudiandae-eligendi@diahkomalasarinpm/tempora-iusto-voluptates-vero@diahkomalasarinpm/vero-reiciendis-asperiores-magnam@diahkomalasarinpm/voluptate-asperiores-voluptatum-accusantium@diahkomalasarinpm/voluptatem-illum-aperiam-dolores@ffras4vnpm/commodi-vero-assumenda
1.0.0

13 days ago