6.8.90 • Published 10 months ago

@taktikorg/non-exercitationem-unde v6.8.90

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

Exec

Wrapper around node spawn process to make it easier to use.

Features

Promises

Command is converted to a promise.

const result = await exec("echo Hello World!");
console.log(result); // Hello World!

Command parser

Spaces are trimmed.

const result = await exec("echo Hello     World!");
console.log(result); // Hello World!

Quotes and double quotes can be used to don't trim spaces.

const result = await exec("echo 'Hello     World!'");
console.log(result); // Hello     World!

Other arguments are take literally.

const result = await exec("echo", "Hello     World!");
console.log(result); // Hello     World!

You can use array of strings to make it easier to read.

await exec("program", { env: {} }, [
  ["--option", "value"],
  ["--option", "value"],
  ["--option", "value"],
]);

Other options

  • printCommand: Print command before running it.
  • inherit: Send output directly to the terminal. Some programs will work on "CI" mode if terminal's stdio is not inherited.
  • spinner: Display a spinner while the command is running.
  • spawnOptions: Override options sent to spawn.
  • proxy: Set proxy environment variables to this value.
  • retries: Retry running command on error.
  • timeout: Fail command on timeout.
  • ignoreError: Never rejects returning promise.
  • stdin: Send text like the character y to the program.
  • printOutput: When not inheriting stdio, send output from the program to the terminal.

Changelog

Changelog

License

MIT License

linkObject.definePropertywaapiprotodotenvserializerString.prototype.trimwafsimpledbreducegdprtrimRightparsingpicomatchlanguagegetternodejslistenersfindLastIndexsetrequestagentguidfinduptestingenviteratorprivate dataObjectSymbol.toStringTagcoerciblecloudsearchtoArrayprunesetImmediatedeepclonecollection.es6lookcodesworkspace:*Object.entriesautoprefixerdynamodbnameparentpathuninstallWebSocketskarmaeslintprivatel10nproxyES2016lockfileglobalcensori18nbreakestreefind-upES2023flagsbeanstalkWebSocketdropdataViewautoscalingtesterfastclonerfc4122chromiumstoragegatewaypreprocessordatesortdeepFunction.prototype.nameassignObject.fromEntriesconfigurableArray.prototype.containsArrayxtermsettingsformattingvaluesglacierlazyexecfileajaxawesomesauceextrapromisergbcolorscreateaccessorpnpm9sqsES5apollocloudfrontobjectcode pointstslibrangeerrorreact-hook-formjasminereduxdeep-clonemapsymboljsxemitperformantidReactiveExtensionsfile systemtransformrouteObservablechildtyped arrayhelpersdomregulares2015es5lengththrottlethroatbatchReactiveXserializeES7[[Prototype]]optionruntimeES2022expressecmascriptdebuggerinputformsArray.prototype.filter256call-boundArray.prototype.flatMapschemafastifyhasOwnPropertyintrinsicPromiseWeakSetsharedarraybufferphonefindcall-binddatastructurelinewrapes-shim APIECMAScript 2020eventsasyncexecutemonorepoworkflowes-shimsutilitiesschemeshrinkwrapURLSearchParamspackage.jsontypeofmrushellenvironmentsreal-timeinternalclient.envjQuerygraphqlkinesispackagemodulesfast-copyredux-toolkitterminalArrayBuffer.prototype.slicestarteres8genericsperformancesidecomparemulti-packageObject.assigntapecloudtrailtools@@toStringTaggetPrototypeOffull-widthArray.prototype.includesspeedposetc39dependency managerquerystringlrurecursiveimmertypedarraystypesparserhardlinkspreserve-symlinkstypedarrayECMAScript 2016RxroutingvarsstylingqueryStreamES2018indicatorUint8ClampedArrayerrorwidthArray.prototype.findLastpersistenteslint-pluginmoveBigInt64ArraycircularwordwrapmimetypesmochabinarytoobjectimportredirectjoixhrequalitytrimwalkshimgetoptbusyarrayscolumnansiECMAScript 5es2016transpilerregular expressionsbundlingstreamsrulescomputed-typescore-jsObject.valuesartInt8Arrayeast-asian-widthunicodetypanionqslogcallbindpropertiesTypeBoxkeyspecwordbreakTypeScriptbrowserliststyleguidecolorbannerec2styleiterationgitignoreajvhigher-orderTypedArraymkdirpromisesECMAScript 2017byteOffsetmkdirslimitastfnmatchawscurlbddrandomnamescolumnschaisortedaccessibilityequalcommand-lineamazonpropertysetPrototypeOfpatchhttpstoSortedmomentmakeduplexrobustRFC-6455String.prototype.matchAllspringquotepropkoreanbinariesinvarianttrimStartfixed-widthforkArrayBufferInt32Arrayyupnegativees2017reducerworkerdebugfeedmkdirphelpertddreact animationtrimEndgesturesuuidcallboundjsmatchespostcsshtmlwritabledescriptorspopmotionweakmapinternal slotprotocol-buffersincludesrapidprocessdefinezodstringreadablestreammime-dbES2021ponyfilloptimistflattenRegExp.prototype.flagsmanipulationbluebirdUint8Arrayenvironmentsesframermake dirformatextensiondragstringifierttytakebundlertypeStreamsemojiURLtsESnextstablepackage managerclass-validatorstreams2espreeiteratecharacterbindreusestdlibES2020regular expressionmergedom-testing-librarywgetgroupBydeepcopyrsslastlocalcommandgraphql-clientprototypeSetstatelessfullinstalldataviewdescriptordeletefunctions0AsyncIterator3dqueueMicrotasksliceReflect.getPrototypeOftoolkitIteratorchromeefficienttermoutputcryptoes-abstractcallbackstylesisConcatSpreadablereact posearrayutil.inspecttextfastconcurrencyarktypematcheselectronawaithasOwnoffsetsyntaxerroroptimizervaliddescriptionlocationremovejavascriptvariablesidentifiersStyleSheetparseiselbeslintpluginBigUint64ArrayRegExp#flagsstringifyjest_.extendasterisksregexthreepackageswhichomitimmutablesymbolszxslotYAMLloadingutilityfilefast-deep-copytypesaferegular-expressioniamsource mapstreamio-tsfunctionprotobufendpoint$.extendredactvaluedependenciesmatchAllmobilejshintES3ES6typescripttaskcjkentriesfolderes2018__proto__vestArray.prototype.findLastIndexiexmlnumberfpsreact-hooksscheme-validationwhatwgrmidleasciiMicrosoftES2019dataowntypeerrorfunctionalassertioneventEmitterdefinePropertyECMAScript 2018polyfillnpmignorenativePushescapevisualcacheconsumereadECMAScript 2019
1.1.29

1 year ago

1.1.28

1 year ago

1.1.30

1 year ago

4.3.55

12 months ago

4.3.54

12 months ago

6.8.89

10 months ago

1.1.34

1 year ago

6.8.88

10 months ago

1.1.33

1 year ago

6.8.87

10 months ago

1.1.32

1 year ago

6.8.86

10 months ago

1.1.31

1 year ago

6.8.85

10 months ago

6.8.84

10 months ago

6.8.83

11 months ago

6.8.82

11 months ago

3.2.37

1 year ago

3.2.39

1 year ago

3.2.38

1 year ago

6.5.80

11 months ago

4.3.42

12 months ago

4.3.41

12 months ago

4.3.46

12 months ago

4.3.45

12 months ago

4.3.44

12 months ago

4.3.43

12 months ago

4.3.48

12 months ago

4.3.47

12 months ago

5.4.65

11 months ago

5.4.63

11 months ago

5.4.64

11 months ago

3.1.36

1 year ago

3.1.35

1 year ago

3.1.37

1 year ago

6.4.65

11 months ago

6.4.67

11 months ago

6.4.66

11 months ago

6.4.69

11 months ago

6.4.68

11 months ago

6.6.80

11 months ago

1.1.12

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

6.8.90

10 months ago

2.1.34

1 year ago

2.1.35

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

5.3.61

11 months ago

5.3.60

11 months ago

4.2.40

1 year ago

4.2.41

1 year ago

5.3.63

11 months ago

5.3.62

11 months ago

6.4.70

11 months ago

6.4.71

11 months ago

5.3.59

12 months ago

5.3.58

12 months ago

4.2.39

1 year ago

5.3.57

12 months ago

5.3.56

12 months ago

5.3.55

12 months ago

6.5.77

11 months ago

6.5.76

11 months ago

6.5.79

11 months ago

6.5.78

11 months ago

6.5.71

11 months ago

6.5.73

11 months ago

6.5.72

11 months ago

6.5.75

11 months ago

6.5.74

11 months ago

6.7.81

11 months ago

6.7.82

11 months ago

6.7.80

11 months ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

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

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago