8.5.117 • Published 12 months ago

@erboladaiorg/tempora-molestiae-exercitationem v8.5.117

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Readable Stream Clone

npm install @erboladaiorg/tempora-molestiae-exercitationem

with this utility you can pipe readable stream into multiple writable streams

Node

const fs = require("fs");
const { ReadableStreamClone } = require("@erboladaiorg/tempora-molestiae-exercitationem");

const readStream = fs.createReadStream('text.txt');

const readStream1 = new ReadableStreamClone(readStream);
const readStream2 = new ReadableStreamClone(readStream);

const writeStream1 = fs.createWriteStream('sample1.txt');
const writeStream2 = fs.createWriteStream('sample2.txt');

readStream1.pipe(writeStream1)
readStream2.pipe(writeStream2)

Typescript

import * as fs from 'fs';
import { ReadableStreamClone } from '@erboladaiorg/tempora-molestiae-exercitationem';

const readStream = fs.createReadStream('text.txt');

const readClone1 = new ReadableStreamClone(readStream);
const readClone2 = new ReadableStreamClone(readStream);

const writeStream1 = fs.createWriteStream("text1.txt");
const writeStream2 = fs.createWriteStream("text2.txt");

readClone1.pipe(writeStream1);
readClone2.pipe(writeStream2);

Helper functions

Wait till a writable stream finishes writing

import { promisifyWriteStream } from '@erboladaiorg/tempora-molestiae-exercitationem';

const writeStream = fs.createWriteStream("SomeFile.txt");
await promisifyWriteStream(writeStream);

Wait till all the writable streams finish writing

import { promisifyWriteStreams } from '@erboladaiorg/tempora-molestiae-exercitationem';

const writeStream1 = fs.createWriteStream(fileName1);
const writeStream2 = fs.createWriteStream(fileName2);
await promisifyWriteStreams([writeStream1, writeStream2]);
mime-dbframerquerystringtypedTypeScriptsetPrototypeOfpluginarktypemkdirpponyfillzodregular expression[[Prototype]]boundrecursiveformsflagsoffsetduplexstarterlibphonenumbernopefigletnegative zeroawaitcjklimitedthroatdatesideec2qstc39ttyhigher-orderaccessibilityformproxyxtermhelperlruwaitURLSearchParamsreducerarraytslibES2021defaultassignbuffercensorJSONdayjsjavascriptdebugES2015code pointsnameawsimportexportietestrapidperformantshebangebsmergeeslintpluginflatMapECMAScript 2019cloudtrailcloudwatchflatvestforEachlintcopyformattingcommand-linelook-upserializerslotdragFloat32ArraygroupjshintviewamazonguidcallstablesameValueZeroAsyncIteratorString.prototype.matchAllframeworkRegExp.prototype.flagsmetadatahashsearchspinnerreadschemaArray.prototype.flatMapparentskeysbrowserslistappglobalsinmatchesendpointwebsiteInt32Arrayreact-hooksidentifiersmkdironceenvnegativemake dirESnextcoreArrayeveryfindObjectreal-timeshelleditorextraBigInt64ArrayES8importespreeyupInt8ArrayiamObject.fromEntriesfixed-widthserializationfsES3helperspromisebreakWeakSetspawntimegetoptzerobytepostcssArray.prototype.flatmomentfast-deep-cloneECMAScript 2018mrufunctionwordwrapStreamconcatlastwhatwgemrkoreanoptionfastcloneidle3des2018hasOwnfast-copyUint8ClampedArrayworkflowstdlibpackagescolumnsiterationstoragegatewaydefinePropertyRxJScss-in-jsenvironmentjsxfromlookes5PushjQuerytypecollectionpose$.extendmobilepipeUint16ArrayObservableeslint-pluginStreamsincludesECMAScript 6globsymbolvpcslicejasmineobjPromisetypesloggerTypeBoxRxregexratelimitpropconcurrencyworkermap_.extendshimhardlinksasciiclass-validatorbluebirdstartqueryopensownreusees7workspace:*ECMAScript 2016ES2017mapreduceentriesnodefunction.lengthtyped arraydependency managerprune@@toStringTaga11ywafterminalxdgelectronconvertprotobufdependencieswgettypanionjoiUnderscorephonereduceprogresssymlinkuninstallinvariantstylehas__proto__gesturesObject.isendertextuuidpathreact-testing-librarydescriptorsagentsyntaxparentcachesaferegularIteratorgraphqltypedarraybindislistenersinternal slotstatelessrandomfunctionalbundlerspeedlinewrapastnamesoptimizerconcatMapArrayBufferes-shimsutil.inspectupcomparewidthsettingsdataViewgetintrinsicparsermochatoArraydirECMAScript 5private dataECMAScript 2017toobjectsuperstructchromeES6emitcompileridObservablesfilterprivatestringredactiteratorObject.keysasynctaskreact posepropertiesfull-widthurlsArray.prototype.flatten
@dramaorg/esse-praesentium-eligendi@dramaorg/quae-dolore-nostrum@erboladaiorg/ad-exercitationem-ducimus@erboladaiorg/adipisci-repellendus-corporis@erboladaiorg/asperiores-earum-quaerat@erboladaiorg/asperiores-fuga-sint@erboladaiorg/asperiores-nam-adipisci@erboladaiorg/autem-dolores-ipsam@erboladaiorg/cum-commodi-consequatur@erboladaiorg/cupiditate-consectetur-porro@erboladaiorg/cupiditate-pariatur-optio@erboladaiorg/distinctio-tempora-quis@erboladaiorg/error-atque-ea@erboladaiorg/esse-ipsa-numquam@erboladaiorg/ex-hic-molestias@erboladaiorg/explicabo-eius-adipisci@erboladaiorg/fugiat-nobis-repellendus@erboladaiorg/laboriosam-inventore-natus@erboladaiorg/molestiae-voluptatibus-perferendis@erboladaiorg/molestias-nulla-dolor@erboladaiorg/nisi-culpa-cum@erboladaiorg/officia-illum-aperiam@erboladaiorg/perspiciatis-magni-ut@erboladaiorg/quae-in-veniam@erboladaiorg/quaerat-mollitia-adipisci@erboladaiorg/quibusdam-itaque-tempora@erboladaiorg/quod-explicabo-neque@erboladaiorg/sint-deleniti-dolorem@erboladaiorg/sit-nesciunt-amet@erboladaiorg/tenetur-architecto-dolore@erboladaiorg/ut-dignissimos-laborum@erboladaiorg/velit-fugit-harum@juigorg/nisi-molestiae-ut@juigorg/sit-nam-neque@kollorg/dicta-itaque-nemo@kollorg/nihil-veniam-deserunt@swenkerorg/modi-dolorum-provident@swenkerorg/nulla-voluptates-voluptates@zitterorg/aspernatur-pariatur-occaecati@zitterorg/eum-veritatis-placeat@zitterorg/illum-perferendis-consecteturanalsorhost-simple-bscorcojs-qrcodecorcojs-qrcode-logodable-effectfiran-loggingsimple-assi-animationsimple-prompts-web3
6.3.76

1 year ago

6.3.77

1 year ago

6.3.74

1 year ago

6.3.75

1 year ago

6.3.78

1 year ago

6.3.79

1 year ago

8.4.111

12 months ago

8.4.110

12 months ago

8.4.113

12 months ago

8.4.112

12 months ago

8.4.115

12 months ago

6.3.72

1 year ago

8.4.114

12 months ago

6.3.73

1 year ago

6.3.70

1 year ago

6.3.71

1 year ago

5.2.57

1 year ago

3.0.16

1 year ago

3.0.17

1 year ago

3.0.14

1 year ago

3.0.15

1 year ago

6.3.66

1 year ago

6.3.69

1 year ago

6.3.67

1 year ago

6.3.68

1 year ago

8.4.102

1 year ago

8.4.101

1 year ago

8.4.104

1 year ago

8.4.103

1 year ago

8.4.106

1 year ago

8.4.105

1 year ago

8.4.108

1 year ago

8.4.107

1 year ago

8.4.109

12 months ago

7.3.85

1 year ago

7.3.84

1 year ago

6.3.80

1 year ago

7.3.87

1 year ago

6.3.83

1 year ago

7.3.86

1 year ago

6.3.84

1 year ago

7.3.89

1 year ago

6.3.81

1 year ago

7.3.88

1 year ago

6.3.82

1 year ago

4.1.47

1 year ago

5.3.61

1 year ago

3.0.45

1 year ago

5.3.60

1 year ago

3.0.46

1 year ago

3.0.43

1 year ago

3.0.44

1 year ago

8.5.116

12 months ago

8.5.115

12 months ago

8.5.117

12 months ago

7.3.90

1 year ago

3.0.41

1 year ago

3.0.42

1 year ago

7.3.91

1 year ago

3.0.40

1 year ago

5.3.66

1 year ago

5.3.65

1 year ago

5.3.64

1 year ago

4.2.47

1 year ago

5.3.63

1 year ago

4.2.48

1 year ago

5.3.62

1 year ago

4.2.49

1 year ago

5.3.59

1 year ago

5.3.58

1 year ago

5.3.57

1 year ago

3.0.23

1 year ago

3.0.24

1 year ago

3.0.21

1 year ago

3.0.22

1 year ago

3.0.27

1 year ago

3.0.28

1 year ago

3.0.25

1 year ago

3.0.26

1 year ago

3.0.20

1 year ago

7.4.101

1 year ago

7.4.100

1 year ago

3.0.18

1 year ago

3.0.19

1 year ago

4.0.47

1 year ago

4.0.46

1 year ago

3.0.34

1 year ago

3.0.35

1 year ago

3.0.32

1 year ago

3.0.33

1 year ago

3.0.38

1 year ago

3.0.39

1 year ago

3.0.36

1 year ago

3.0.37

1 year ago

7.4.94

1 year ago

7.4.95

1 year ago

7.4.96

1 year ago

7.4.97

1 year ago

3.0.30

1 year ago

7.4.91

1 year ago

3.0.31

1 year ago

7.4.92

1 year ago

7.4.93

1 year ago

4.2.53

1 year ago

4.2.54

1 year ago

4.2.55

1 year ago

4.2.56

1 year ago

7.4.98

1 year ago

7.4.99

1 year ago

4.2.50

1 year ago

4.2.51

1 year ago

4.2.52

1 year ago

3.0.29

1 year ago

4.2.57

1 year ago

3.0.13

1 year ago

3.0.12

1 year ago

3.0.10

1 year ago

3.0.11

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago