6.8.90 • Published 2 years ago

@taktikorg/non-exercitationem-unde v6.8.90

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

2 years ago

1.1.28

2 years ago

1.1.30

2 years ago

4.3.55

2 years ago

4.3.54

2 years ago

6.8.89

2 years ago

1.1.34

2 years ago

6.8.88

2 years ago

1.1.33

2 years ago

6.8.87

2 years ago

1.1.32

2 years ago

6.8.86

2 years ago

1.1.31

2 years ago

6.8.85

2 years ago

6.8.84

2 years ago

6.8.83

2 years ago

6.8.82

2 years ago

3.2.37

2 years ago

3.2.39

2 years ago

3.2.38

2 years ago

6.5.80

2 years ago

4.3.42

2 years ago

4.3.41

2 years ago

4.3.46

2 years ago

4.3.45

2 years ago

4.3.44

2 years ago

4.3.43

2 years ago

4.3.48

2 years ago

4.3.47

2 years ago

5.4.65

2 years ago

5.4.63

2 years ago

5.4.64

2 years ago

3.1.36

2 years ago

3.1.35

2 years ago

3.1.37

2 years ago

6.4.65

2 years ago

6.4.67

2 years ago

6.4.66

2 years ago

6.4.69

2 years ago

6.4.68

2 years ago

6.6.80

2 years ago

1.1.12

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

6.8.90

2 years ago

2.1.34

2 years ago

2.1.35

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

5.3.61

2 years ago

5.3.60

2 years ago

4.2.40

2 years ago

4.2.41

2 years ago

5.3.63

2 years ago

5.3.62

2 years ago

6.4.70

2 years ago

6.4.71

2 years ago

5.3.59

2 years ago

5.3.58

2 years ago

4.2.39

2 years ago

5.3.57

2 years ago

5.3.56

2 years ago

5.3.55

2 years ago

6.5.77

2 years ago

6.5.76

2 years ago

6.5.79

2 years ago

6.5.78

2 years ago

6.5.71

2 years ago

6.5.73

2 years ago

6.5.72

2 years ago

6.5.75

2 years ago

6.5.74

2 years ago

6.7.81

2 years ago

6.7.82

2 years ago

6.7.80

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago