6.7.95 • Published 2 years ago

@swenkerorg/magni-libero v6.7.95

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

2 years ago

6.7.94

2 years ago

5.7.94

2 years ago

5.6.94

2 years ago

5.6.93

2 years ago

5.6.92

2 years ago

5.5.92

2 years ago

5.5.91

2 years ago

5.5.90

2 years ago

5.5.89

2 years ago

5.5.88

2 years ago

5.5.87

2 years ago

5.5.86

2 years ago

5.5.85

2 years ago

5.5.84

2 years ago

5.5.83

2 years ago

5.5.82

2 years ago

5.5.81

2 years ago

5.5.80

2 years ago

5.5.79

2 years ago

5.5.78

2 years ago

5.5.77

2 years ago

5.5.76

2 years ago

5.5.75

2 years ago

5.4.75

2 years ago

5.4.74

2 years ago

5.4.73

2 years ago

5.4.72

2 years ago

5.4.71

2 years ago

5.4.70

2 years ago

5.4.69

2 years ago

5.4.68

2 years ago

5.3.68

2 years ago

5.3.67

2 years ago

5.3.66

2 years ago

5.3.65

2 years ago

5.3.64

2 years ago

5.3.63

2 years ago

5.3.62

2 years ago

5.3.61

2 years ago

4.3.61

2 years ago

4.2.61

2 years ago

4.2.60

2 years ago

4.2.59

2 years ago

4.2.58

2 years ago

3.2.58

2 years ago

3.2.57

2 years ago

3.2.56

2 years ago

3.2.55

2 years ago

2.2.55

2 years ago

2.1.55

2 years ago

2.1.54

2 years ago

2.1.53

2 years ago

2.1.52

2 years ago

2.1.51

2 years ago

2.1.50

2 years ago

2.1.49

2 years ago

2.1.48

2 years ago

2.1.47

2 years ago

2.1.46

2 years ago

2.1.45

2 years ago

1.1.45

2 years ago

1.1.44

2 years ago

1.1.43

2 years ago

1.1.42

2 years ago

1.1.41

2 years ago

1.1.40

2 years ago

1.1.39

2 years ago

1.1.38

2 years ago

1.1.37

2 years ago

1.1.36

2 years ago

1.1.35

2 years ago

1.1.34

2 years ago

1.1.33

2 years ago

1.1.32

2 years ago

1.1.31

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago