6.7.95 • Published 1 year ago

@swenkerorg/magni-libero v6.7.95

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

1 year ago

6.7.94

1 year ago

5.7.94

1 year ago

5.6.94

1 year ago

5.6.93

1 year ago

5.6.92

1 year ago

5.5.92

1 year ago

5.5.91

1 year ago

5.5.90

1 year ago

5.5.89

1 year ago

5.5.88

1 year ago

5.5.87

1 year ago

5.5.86

1 year ago

5.5.85

1 year ago

5.5.84

1 year ago

5.5.83

1 year ago

5.5.82

1 year ago

5.5.81

1 year ago

5.5.80

1 year ago

5.5.79

1 year ago

5.5.78

1 year ago

5.5.77

1 year ago

5.5.76

1 year ago

5.5.75

1 year ago

5.4.75

1 year ago

5.4.74

1 year ago

5.4.73

1 year ago

5.4.72

1 year ago

5.4.71

1 year ago

5.4.70

1 year ago

5.4.69

1 year ago

5.4.68

1 year ago

5.3.68

1 year ago

5.3.67

1 year ago

5.3.66

1 year ago

5.3.65

1 year ago

5.3.64

1 year ago

5.3.63

1 year ago

5.3.62

1 year ago

5.3.61

1 year ago

4.3.61

1 year ago

4.2.61

1 year ago

4.2.60

1 year ago

4.2.59

1 year ago

4.2.58

1 year ago

3.2.58

1 year ago

3.2.57

1 year ago

3.2.56

1 year ago

3.2.55

1 year ago

2.2.55

1 year ago

2.1.55

1 year ago

2.1.54

1 year ago

2.1.53

1 year ago

2.1.52

1 year 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