6.7.95 • Published 10 months ago

@swenkerorg/magni-libero v6.7.95

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

@swenkerorg/magni-libero

GitHub Workflow Status License NPM Version Downloads/Month

"Converts" a stream to a string. Promises are used by default, callbacks are allowed as well.

Installation

Assuming you have Node, you can just run:

npm install --save @swenkerorg/magni-libero

Usage

Promises

const fs = require("fs");
const ss = require("@swenkerorg/magni-libero");

// Make a gzip stream (just for this example)
const myStream = fs
  .createReadStream("./file")
  .pipe(require("zlib").createGzip());

ss(myStream)
  .then((data) => {
    // myStream was converted to a string, and that string is stored in data
    console.log(data);
  })
  .catch((err) => {
    // myStream emitted an error event (err), so the promise from @swenkerorg/magni-libero was rejected
    throw err;
  });

Callbacks

const fs = require("fs");
const ss = require("@swenkerorg/magni-libero");

// Make a gzip stream (just for this example)
const myStream = fs
  .createReadStream("./file")
  .pipe(require("zlib").createGzip());

ss(myStream, (err, data) => {
  if (err) {
    // myStream emitted an error event (err), which was passed to the callback
    throw err;
  } else {
    // myStream was converted to a string, and that string is stored in data
    console.log(data);
  }
});

Contributing

Contributions welcome! Please read the contributing guidelines first. Also, try to keep code coverage up - npm test will tell you the code coverage near the end of its output, not to mention the fact that it will first test your code :smiley:

License

ISC

linkJSON-Schemaiaminternall10ntakeform-validationvalidationbrowserslistcore-jssyntaxerrortypekinesistypedarraysreact-hooksutilsidentifiersdeep-clonehtmltypeerrortestingcontainsschemainstalls3immutableasserts.gitignorereducerObservablesESnextincludesdescriptionagentsidetypedspawnIteratorfind-upfindLast3dtrimRightomitArray.prototype.includesUint8Arrayuninstallstringifymkdirpgroupdeep-copyURLexpressnegativeenvironmentspinnerscoerciblefantasy-landes2016workeres-shimslrureact animationmetadatamoduleObject.valuesES2022saferobustcall-bindguidconcatcallbackjsonschemaautoprefixercloudformationstarterfastifynegative zero0webPromiseglobframercollectionspeclocationpropertyspinnerpropertiesindicatorjslockfileenumerablestablereact-testing-librarytranspileres6apollocodescheckECMAScript 2017coreforEachhigher-orderastparentpureWeakSetbindharmonyglobal this valueschemesubprocessautoscalingdirectorychannelletrulesbytexhrmulti-packageBigUint64ArrayvariableseslintargumenttypesequalvalidateObject.getPrototypeOfbrowserlistCSSStyleDeclarationimmerECMAScript 2022debugexecdeepclonees2015coveragehas-ownredux-toolkitjson-schema-validationec2accessorECMAScript 2018walkingwaapimkdirdirECMAScript 3get6to5requestfastuuidvisualcolourstringifierES7rm -frutilityreal-timedayjsgetOwnPropertyDescriptorworkspace:*findLastIndexhttpenvironmentsroutingWebSocketcryptotypescriptwalkbinariesflagpnpm9apiECMAScript 2021commandttyfast-deep-clonematchesponyfilles7writeminimalWeakMapObject.isintrinsicloggerphoneposeObject.assignequalityES2020.envtrimgraphqlcliinspectbinprotocol-buffersflatArray.prototype.flatwhatwgunicodeweakmapcssperformanceurlrouterjesteventEmitterHyBisymlinksmovefunctionsinvalidstylingdependenciesajvendpointstyleguidedeepclientserializerdropRxJSpostcss-pluginmatchAllendernumberarraybufferboundcircularmochabufferscloneloggingassertcloudsearchdiffeslintconfigshimrm -rftc39io-tsqueueMicrotaskfigletglobal objectselfjsdomnamescurlbrowseremitstructuredCloneflatMaptransformgetoptshebangwhichlook-upES6class-validatortslibpinordstestercode pointsgenericsstylesconfigespreekarmajQueryObject.fromEntriesiefast-copycss-in-jscallspringnameawsES2015keyarraypositiveanimationglobalsloadbalancingFloat64ArrayhasOwnPropertymodulesregular expressionreworkchromiuma11yES3callboundenvidleelectronUint32ArrayJSONrmprivateansireadableflattenchaiparsetddtypanionfspicomatchESnodejsglacierescapezxsharedarraybufferInt8ArrayRegExp#flagslanguageFunction.prototype.nameoptionkoreantsparserrecursive
6.7.95

10 months ago

6.7.94

10 months ago

5.7.94

10 months ago

5.6.94

10 months ago

5.6.93

11 months ago

5.6.92

11 months ago

5.5.92

11 months ago

5.5.91

11 months ago

5.5.90

11 months ago

5.5.89

11 months ago

5.5.88

11 months ago

5.5.87

11 months ago

5.5.86

11 months ago

5.5.85

11 months ago

5.5.84

11 months ago

5.5.83

11 months ago

5.5.82

11 months ago

5.5.81

11 months ago

5.5.80

11 months ago

5.5.79

11 months ago

5.5.78

11 months ago

5.5.77

11 months ago

5.5.76

11 months ago

5.5.75

11 months ago

5.4.75

11 months ago

5.4.74

11 months ago

5.4.73

11 months ago

5.4.72

11 months ago

5.4.71

11 months ago

5.4.70

11 months ago

5.4.69

11 months ago

5.4.68

11 months ago

5.3.68

11 months ago

5.3.67

11 months ago

5.3.66

12 months ago

5.3.65

12 months ago

5.3.64

12 months ago

5.3.63

12 months ago

5.3.62

12 months ago

5.3.61

12 months ago

4.3.61

12 months ago

4.2.61

12 months ago

4.2.60

12 months ago

4.2.59

12 months ago

4.2.58

12 months ago

3.2.58

12 months ago

3.2.57

12 months ago

3.2.56

12 months ago

3.2.55

12 months ago

2.2.55

12 months ago

2.1.55

12 months ago

2.1.54

12 months ago

2.1.53

12 months ago

2.1.52

12 months ago

2.1.51

1 year ago

2.1.50

1 year ago

2.1.49

1 year ago

2.1.48

1 year ago

2.1.47

1 year ago

2.1.46

1 year ago

2.1.45

1 year ago

1.1.45

1 year ago

1.1.44

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.39

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago