5.12.110 • Published 1 year ago

@devtea2026/optio-harum-deserunt-distinctio v5.12.110

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2026/optio-harum-deserunt-distinctio 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('@devtea2026/optio-harum-deserunt-distinctio')

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('@devtea2026/optio-harum-deserunt-distinctio')

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('@devtea2026/optio-harum-deserunt-distinctio')

//like this
var ts = through(write, end, {autoDestroy: false})
//or like this
var ts = through(write, end)
ts.autoDestroy = false
collectionbyteOffsetObservablecomparepreprocessortoolkitstylesheetcolourdescriptorssqsutil.inspectvaliditeratorassertioneslint-pluginWebSocketsenderpositiveIteratorvaluesSymbolmapreduceES7accessorlook-upagenttakeartschemeregexmkdirsminimaldynamodbcommanderclassnamessetImmediatefunctionalenvhas-ownlanguageTypedArrayrdssigtermArray.prototype.findLastIndexassertsreusequeuehasOwnsortedpackagesunicodeyupiefast-copyequalityecmascriptidentifiersvisualnativespinnermakecolumntypeECMAScript 6jsES8warningspeedcjkcopyjshintmapconfigxdg-openObject.assigndefinePropertyObservablesInt16Arrayrandomcss nestingperformancewidthURLSearchParamsreacthttpsbyteLengthESnextsearchnodepropertiescharacterquerystringchromecurlsafesharedarraybufferlessownmonorepophonekeysmacosfstapemkdirstreamflatMapcharacterstouchfseventsES2020emitpipebundlingjoiparentsregularclonehardlinksdateebsfindxdgObject.valueswatchreststyled-componentsUnderscorecensorchanneli18ncode pointscloudtrailES2015flagsreal-timefindLastIndextc39intrinsicprototypecss-in-jsdeep-copy__proto__electronCSSStyleSheetReflect.getPrototypeOfnpmPromisehandlersES2018opennumberinspectgroupBychaiparsedebuggerrecursivewrapimporttrimEndes-shim APIidvalidationconcatMapObject.definePropertyreact-hooksTypeScriptinstallspecparentappglacierfastclonedeepclonepyyamlrangeerrormkdirpWeakMapformsignalsarraybufferdroprfc4122lintloggerkarmatddmoduleschildelasticachepatchYAMLString.prototype.matchAllinstallerstringifycall-boundpredictableefficientfastcopyArrayBuffer.prototype.slicebuffersetterwatchingastes6redux-toolkitstreams2stableexpressreplayelbMapjQueryfastifytoSortedes2018Rxs3apicss variablecacheswfECMAScript 2020flagstylesarraysautoprefixeruuidfilterfast-cloneirqtaskstoragegatewaydefineECMAScript 2015upscheme-validationlimitedES2021ES6$.extendviewvestio-tsshamObject.getPrototypeOfrgbperformantpnpm9invariantbannereskoreanlockfilewafutilless compilerstringclassnamematchAllfast-deep-clonegdprpreserve-symlinksmochamixinsclassespackage_.extendrmdirinternalMicrosoftreadablestreamfoldersetinternal slotjsxurlestreecommandentriescliES2016websitepruneassigndatatoArrayserializerreducereduxlastformatObject.entrieslrupromisesstarterfullwidthsequencesliceHyBixhrArray.prototype.containsrouterarrayclass-validatorescapedebugpropiterateonceless mixinsjsonpatheventshooksdeterministicstructuredCloneprotobufreducerloadingsetPrototypeOfproxybeanstalkbddECMAScript 2017es-abstractdirthrottleconcatspinnersFloat64ArraydomjavascriptflatcoerciblebindcloudsearchpersistentformattingjapanesesuperstructquoteglobalArray.prototype.includeserrorvariablesvalidateform-validationurlsmake dirnodejsFunction.prototype.namedayjsRxJStostringtagroute53BigInt64Arraynested csssettingses-shimserror-handlingstdlibtypanionfile systemzerottytyped arraya11ywritableconfigurableObject.istestsharedJSONsymbolsargumentes2017kinesiscorsAsyncIteratorJSON-SchemasigintyamlimportexportframeworkhashES2019queueMicrotaskstyleguidehttptypedcss lessrapidESresolvepasswordbootstrap lesslibphonenumbersymbollookcolorvalueoptionoptimiststartratecore-jsavafindupcomputed-typesargparseoutputawesomesaucecall-bindexitsortopensfigletes2016faststateless.envwordbreakmergewindowsECMAScript 2021command-linematchestermslotdefaultUint8ClampedArrayArray.prototype.flatMapomitremoveWebSocketserializationES2023mimeeast-asian-widthairbnbencryptionawaitcolumns
5.12.110

1 year ago

5.12.109

1 year ago

5.11.109

1 year ago

5.11.108

1 year ago

5.11.107

1 year ago

5.11.106

1 year ago

5.11.105

1 year ago

5.11.104

1 year ago

5.9.86

1 year ago

5.7.63

1 year ago

5.9.87

1 year ago

5.7.62

1 year ago

5.9.88

1 year ago

5.7.65

1 year ago

5.9.89

1 year ago

5.7.64

1 year ago

5.9.84

1 year ago

5.7.61

1 year ago

5.9.85

1 year ago

5.7.60

1 year ago

5.7.67

1 year ago

5.7.66

1 year ago

5.7.69

1 year ago

5.7.68

1 year ago

3.7.48

1 year ago

3.7.49

1 year ago

3.7.46

1 year ago

3.7.47

1 year ago

3.7.45

1 year ago

2.6.26

1 year ago

2.6.27

1 year ago

2.6.28

1 year ago

2.6.29

1 year ago

2.6.25

1 year ago

5.10.92

1 year ago

5.10.91

1 year ago

3.6.45

1 year ago

3.6.44

1 year ago

3.6.43

1 year ago

3.6.42

1 year ago

3.6.41

1 year ago

2.4.19

1 year ago

2.6.37

1 year ago

5.10.98

1 year ago

3.6.40

1 year ago

2.6.33

1 year ago

5.10.97

1 year ago

2.6.34

1 year ago

2.6.35

1 year ago

5.10.99

1 year ago

2.6.36

1 year ago

5.10.94

1 year ago

5.10.93

1 year ago

2.6.30

1 year ago

5.10.96

1 year ago

2.6.31

1 year ago

5.10.95

1 year ago

2.6.32

1 year ago

5.8.81

1 year ago

5.8.82

1 year ago

5.8.83

1 year ago

5.8.84

1 year ago

5.8.80

1 year ago

2.4.21

1 year ago

2.4.20

1 year ago

2.4.22

1 year ago

5.8.75

1 year ago

5.8.76

1 year ago

5.8.77

1 year ago

4.7.53

1 year ago

4.7.56

1 year ago

4.7.57

1 year ago

4.7.54

1 year ago

4.7.55

1 year ago

4.7.58

1 year ago

4.7.59

1 year ago

5.8.78

1 year ago

5.8.79

1 year ago

3.6.37

1 year ago

3.6.39

1 year ago

3.6.38

1 year ago

3.7.53

1 year ago

5.10.100

1 year ago

5.10.104

1 year ago

2.5.25

1 year ago

5.10.103

1 year ago

5.10.102

1 year ago

5.10.101

1 year ago

3.7.51

1 year ago

3.7.52

1 year ago

2.5.22

1 year ago

2.5.23

1 year ago

3.7.50

1 year ago

2.5.24

1 year ago

5.7.74

1 year ago

5.7.73

1 year ago

5.7.75

1 year ago

5.7.70

1 year ago

5.7.72

1 year ago

5.7.71

1 year ago

5.9.90

1 year ago

4.7.60

1 year ago

5.9.91

1 year ago

2.3.19

1 year ago

2.3.18

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.15

1 year ago

2.2.16

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago