3.3.90 • Published 2 years ago

@hishprorg/dolorum-est v3.3.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

global objecttextObject.isidentifierscallboundcollectionelasticacheECMAScript 6tacitES2016regexagentUint32Arrayloadingconstownglobal this valuetouchrgbroutecompilerenvironmentcolorloggingmkdirflathookformslotESnextWeakMapcall-bindECMAScript 2016reactgdprdescriptorTypeBoxreworkoptimizeres5Float64ArraytermtesternpmignoretrimLeftprivate dataenvironmentslookMicrosoftrestexec6to5pipe_.extendsharedarraybufferflagfindprotobufapollocollection.es6vesttapeformattingcolumnsreduceautoprefixermonorepotranspilesetImmediatei18narrayspawnstoragegatewayenvserializertrimStartsharedes8fullwidthsesObservablecurriedjsreact animationfpscore-jsmomentistanbultranspilerES8starterflatMapmobilepurepushiterateinvariantrapidparentpackage managermruECMAScriptfileasyncxmlterminaltoStringTagassertsescapeglobalsconcatMapgetOwnPropertyDescriptores-shim APIrandomdefinePropertyArray.prototype.containsquotepostcss-pluginperformantselfdataViewtc39ECMAScript 2020eventDispatchernamejsdomglobalstylingmovepruneespreegetoptdynamodbrulesenumerablecacheArrayBuffer.prototype.sliceJSON-SchemaclassnamesutilsisUint16ArrayUnderscoreamazonpolyfillutil.inspectwhatwgworkspace:*rmjavascripttapansiobjECMAScript 2023syntaxerror256runtimeemitBigUint64ArrayproxytransportgenericsboundsameValueZerotoSortedkarmaECMAScript 7findLastjQueryuninstallkinesisfast-clonecircularpopmotionsinatraString.prototype.matchAllsubprocesssortdom-testing-libraryfastcopyinstrumentation[[Prototype]]hasavareusedefinebrowserslistRegExp.prototype.flagswait3dzeroAsyncIteratorfunction.lengthframeruuidindicatorbinarypicomatchreact posetypescriptfromintrinsicfindupes2016stringredirectredux-toolkitesargumentglobTypedArrayargsqueueMicrotaskeslint-pluginimmerramdatypedarraycommandaccessibilityttyexecutepackage.jsonwritabledataviewformatequalfulljsonschemaconcatharmonyconfigurableECMAScript 2015String.prototype.trimexecfilehttpsdiffchromiumlintcjksymlinkshelpersforEachoutputconsoletoReversedlruairbnbproppromisehasOwnPropertyPushaccessorSetfunctionec2es2018columnrfc4122fork@@toStringTagsqstelephonewarningoncerestfulforms
3.3.90

2 years ago

3.3.89

2 years ago

3.3.88

2 years ago

3.3.87

2 years ago

3.3.86

2 years ago

3.3.85

2 years ago

3.3.84

2 years ago

3.3.83

2 years ago

3.3.82

2 years ago

3.3.81

2 years ago

3.3.80

2 years ago

3.3.79

2 years ago

3.3.78

2 years ago

3.3.77

2 years ago

3.3.76

2 years ago

3.2.76

2 years ago

3.2.75

2 years ago

3.2.74

2 years ago

3.2.73

2 years ago

3.2.72

2 years ago

3.2.71

2 years ago

3.2.70

2 years ago

3.2.69

2 years ago

3.2.68

2 years ago

3.2.67

2 years ago

3.2.66

2 years ago

3.2.65

2 years ago

3.2.64

2 years ago

3.2.63

2 years ago

3.2.62

2 years ago

3.2.56

2 years ago

3.2.55

2 years ago

3.2.54

2 years ago

3.2.53

2 years ago

3.2.52

2 years ago

3.2.51

2 years ago

3.1.51

2 years ago

3.1.50

2 years ago

3.1.49

2 years ago

3.1.48

2 years ago

3.1.47

2 years ago

3.1.46

2 years ago

3.1.45

2 years ago

3.1.44

2 years ago

3.1.43

2 years ago

3.1.42

2 years ago

3.1.41

2 years ago

3.1.40

2 years ago

3.1.39

2 years ago

3.1.38

2 years ago

3.1.37

2 years ago

3.1.36

2 years ago

3.1.35

2 years ago

3.1.34

2 years ago

3.1.33

2 years ago

3.1.32

2 years ago

3.1.31

2 years ago

2.1.31

2 years ago

2.1.30

2 years ago

2.0.30

2 years ago

2.0.29

2 years ago

2.0.28

2 years ago

2.0.27

2 years ago

2.0.26

2 years ago

2.0.25

2 years ago

2.0.24

2 years ago

2.0.23

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

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