5.12.110 • Published 11 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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

11 months ago

5.12.109

11 months ago

5.11.109

11 months ago

5.11.108

11 months ago

5.11.107

11 months ago

5.11.106

11 months ago

5.11.105

11 months ago

5.11.104

11 months ago

5.9.86

11 months ago

5.7.63

1 year ago

5.9.87

11 months ago

5.7.62

1 year ago

5.9.88

11 months ago

5.7.65

1 year ago

5.9.89

11 months ago

5.7.64

1 year ago

5.9.84

12 months ago

5.7.61

1 year ago

5.9.85

12 months ago

5.7.60

1 year ago

5.7.67

1 year ago

5.7.66

1 year ago

5.7.69

12 months ago

5.7.68

12 months 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

11 months ago

5.10.91

11 months 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

11 months ago

3.6.40

1 year ago

2.6.33

1 year ago

5.10.97

11 months ago

2.6.34

1 year ago

2.6.35

1 year ago

5.10.99

11 months ago

2.6.36

1 year ago

5.10.94

11 months ago

5.10.93

11 months ago

2.6.30

1 year ago

5.10.96

11 months ago

2.6.31

1 year ago

5.10.95

11 months ago

2.6.32

1 year ago

5.8.81

12 months ago

5.8.82

12 months ago

5.8.83

12 months ago

5.8.84

12 months ago

5.8.80

12 months ago

2.4.21

1 year ago

2.4.20

1 year ago

2.4.22

1 year ago

5.8.75

12 months ago

5.8.76

12 months ago

5.8.77

12 months 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

12 months ago

5.8.79

12 months 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

11 months ago

5.10.104

11 months ago

2.5.25

1 year ago

5.10.103

11 months ago

5.10.102

11 months ago

5.10.101

11 months 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

12 months ago

5.7.73

12 months ago

5.7.75

12 months ago

5.7.70

12 months ago

5.7.72

12 months ago

5.7.71

12 months ago

5.9.90

11 months ago

4.7.60

1 year ago

5.9.91

11 months 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