1.0.0 • Published 21 days ago

@devtea2025/consequuntur-ad-libero-tenetur v1.0.0

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

@devtea2025/consequuntur-ad-libero-tenetur Version Badge

Note: This package is a fork of https://npmjs.com/through, and builds off of it.

github actions coverage License Downloads

npm badge

Easy way to create a Stream that is both readable and writable.

  • Pass in optional write and end methods.
  • through takes care of pause/resume logic if you use this.queue(data) instead of this.emit('data', data).
  • Use this.pause() and this.resume() to manage flow.
  • Check this.paused to see current flow state. (write always returns !this.paused).

This function is the basis for most of the synchronous streams in event-stream.

var through = require('@devtea2025/consequuntur-ad-libero-tenetur')

through(function write(data) {
    this.queue(data) //data *must* not be null
  },
  function end () { //optional
    this.queue(null)
  })

Or, can also be used without buffering on pause, use this.emit('data', data), and this.emit('end')

var through = require('@devtea2025/consequuntur-ad-libero-tenetur')

through(function write(data) {
    this.emit('data', data)
    //this.pause()
  },
  function end () { //optional
    this.emit('end')
  })

Extended Options

You will probably not need these 99% of the time.

autoDestroy=false

By default, through emits close when the writable and readable side of the stream has ended. If that is not desired, set autoDestroy=false.

var through = require('@devtea2025/consequuntur-ad-libero-tenetur')

//like this
var ts = through(write, end, {autoDestroy: false})
//or like this
var ts = through(write, end)
ts.autoDestroy = false
bufferpackageses2018dotenvforEachparsernativesuperstructstartsignalcloudformationremovejsdomiamstoragegatewayregexpECMAScript 2019websitecss-in-jssameValueZeroes7cjkreusejasminefromstylinguuidstableserializeres2016Object.fromEntriespackage managermkdirvesta11ypropertypositiveencryptionvpcsignalsrm -rfsnseslintpluginutileventEmitterflatlinkpruneFloat32ArraygetPrototypeOfextratypedmrustringbrowserslistchromehasOwnapivalidlook-upless csspicomatchtrimStartES2017expressStreamelmArray.prototype.findLastIndexoptimizermime-dbclassnamextermsinatraexpressionshamtimeqshas-ownuprmdirrm -frdebugmatchcss variableinternalcolorsyntaxerrorrobustpathES7higher-orderstreams2[[Prototype]]es-shimsvariablespreprocessorstructuredClonelintshebanglivecmdspecwhatwgcommandworkspace:*protoECMAScript 2015genericsECMAScript 2023exit-codecircularlanguagedataViewprototypeeslintObject.definePropertywaitArray.prototype.includestypedarrayscontainsURLform-validationextendUint8ArraytrimEndcryptfindLastIndexweakmapES5TypedArrayES2015eslintconfigfinduptypeofpromisesdescriptorreducerviewobjkinesislistenersstreamInt32Arraycloudwatchboundopenertddnamesutil.inspectprotocol-buffersArrayObjectclassesECMAScript 5fast-deep-cloneESsetPrototypeOfObject.valuescloneenumerablejoisymbolwrapjestcharacterassertYAMLless mixinsio-tscorsrapid__proto__command-linesimpledbvarseditorworkerRegExp#flagsrmhashtostringtagsortdom-testing-librarynumbercolumnbrowsercharactersregexes2017xhrhottoStringTagnegative zerocall-bindfixed-widthhookformpredictableStyleSheetserializationomitparsingclassnamessearchbundlingstateargv-0nested cssReactiveExtensionsgetOwnPropertyDescriptorMapmakechinesepostcssgetruntimewebflagdeep-cloneIteratorcurlArray.prototype.filteraccessibilityregular expressionl10ndataviewpatchreadablepush256inputcallfoldercryptonodejscreateoptimistjsxquerystringstyled-componentsconnectfluxfunctionES2019avaes8mergepromiseprettydeterministicduplexBigUint64Arrayparentsequencesafelasttypedarraycloudsearchtypesafescheme-validationcodesendpointroute53less compilerRFC-6455zodchannelsymlinksmodulesauthloadbalancingrdsfileES2020throatpostcss-pluginArray.prototype.findLastES8javascriptdefinePropertyFunction.prototype.namenpmquerycloudfrontES6lockfilecallbindrouterelbwritableawaitlogsharedarraybufferphoneterminalqueuedeep-copynameajvslotefficientlazyStreamsidlinuxinternal slotcacheesECMAScript 2021childjQueryreact-testing-libraryprivate dataAsyncIteratorec2spinnerwarningweaksetprotobufqueueMicrotaskeslint-pluginArray.prototype.containspolyfilldropgradients csstestloggingsymlinkconsoleflatMapresolvegroupBycallbackbatchmobilehandlers0isperformanttesteroperating-systemttyObject.entriesbcryptautoscalingwafSymbol.toStringTagthrottlefast-copyECMAScript 2016symbolsclinodeArrayBufferglobalsliceglacierexiti18nartworkflowtraverseES2022launchrestfulaccessorinstallwordbreak.envframeworkswfirqECMAScript 2017diffString.prototype.trimfastifyreplayfastcloneargparsetypeerrorArray.prototype.flatMapconcatMapregular expressionsObject.isdeepcloneconfigdeepcopyECMAScript 6rfc4122stringifierMicrosoftTypeScripttsUnderscoreReflect.getPrototypeOfpyyamlString.prototype.matchAlloffsetopenmimetypescolumnsHyBikeysinastiterateeventDispatcherbundlerSymbolextensionclass-validatorgetoptfast-cloneReactiveXmoduleexecutableRegExp.prototype.flagsObject.keysenvironmentsunicodehttpsES2023collection.es6assigntoolkitreact-hookscoerciblereact-hook-formparentsES3reduxoutputmatchesestreeownescapeObservablesstylesES2021koreanfind-upes5settingsenderObservableUint8ClampedArraytslibvaluesdatastructurefseventsjsdiff_.extendJSON-SchemastreamsmacostoSortedgetterkeybootstrap cssformatawsdefaultbindagentxdg-openelasticachecss lessArray.prototype.flattencallboundfast-deep-copyinspectyamlprivateimmertypees-abstractWebSocketlibphonenumberbddjsonpathfigletfindcall-boundObject.getPrototypeOftoobjectsettersetImmediateargumentsminimalarraybluebirdcssrecursiveprogressiteratorfullwidthuninstallapplinewrapECMAScript 2020execpreserve-symlinksWebSocketsbreakshellECMAScript 2018ponyfillFloat64ArraypropertiesjshintdescriptorsprocessECMAScript 3sharedinferencestyleguidewritenegativeObject.assigndynamodbfull-widthtc39restbyteLengthmake dirdeletemkdirsargsdirreadguidtapesigintless.jssestrimLeftassertspluginconsumebrowserlistchromiumhardlinkschaiisConcatSpreadablecomputed-typess3japanesevisuallimitedwidthstatelessindicatorjwtspawnequaltelephonestylesheettouchUint32Arraycompile lessrequireentriesquoteonceasynclimitspinnersreducelookfastcopyECMAScript 7Int16ArrayarktypeRxJSfsrequestfile systemerrorES2018compilermiddlewarees6multi-packagebeanstalkecmascriptansiwhichflattenbytevalidationiterationURLSearchParamsdependencieshasdomInt8ArrayArrayBuffer.prototype.slicemapwatchspeedCSSStyleDeclarationauthenticationmoment$.extendjstoArraystyleArray.prototype.flatformsESnextsyntaxserializevalidatesqsemittermtrimRightemojitypescriptparsetakewindowsperformanceSetlrureadablestreambannerwatchFileWeakSetidentifiersdataawesomesauceemrwalkingpipeinstallerinterruptscss nestingtoolssetfastglobalsPromiseES2016packagemixinstestingcoloururldescriptionpnpm9airbnbcolorscomparelesswgetmonorepobootstrap lessdirectoryamazonoptioncensorconfigurableimportenverror-handlingurlsmkdirpJSONiehasOwnPropertydategetintrinsicdefineassertionglobhooksconcatmochavalueimmutablearraybuffer@@toStringTagequalityregularstringifyhttpwatchingredactfullprefixbuffersincludesexedependency managertaskidleschemefunctionscode pointsxdgredux-toolkiteverykarmasigtermcloudtrailstarterloggerlengthwordwrapform
1.0.0

21 days ago