3.3.90 • Published 11 months ago

@hishprorg/dolorum-est v3.3.90

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

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

11 months ago

3.3.89

11 months ago

3.3.88

11 months ago

3.3.87

11 months ago

3.3.86

11 months ago

3.3.85

11 months ago

3.3.84

11 months ago

3.3.83

11 months ago

3.3.82

11 months ago

3.3.81

11 months ago

3.3.80

11 months ago

3.3.79

11 months ago

3.3.78

11 months ago

3.3.77

11 months ago

3.3.76

11 months ago

3.2.76

11 months ago

3.2.75

11 months ago

3.2.74

11 months ago

3.2.73

11 months ago

3.2.72

11 months ago

3.2.71

11 months ago

3.2.70

11 months ago

3.2.69

11 months ago

3.2.68

11 months ago

3.2.67

12 months ago

3.2.66

12 months ago

3.2.65

12 months ago

3.2.64

12 months ago

3.2.63

12 months ago

3.2.62

12 months ago

3.2.56

12 months ago

3.2.55

12 months ago

3.2.54

12 months ago

3.2.53

12 months ago

3.2.52

12 months ago

3.2.51

12 months ago

3.1.51

12 months ago

3.1.50

12 months ago

3.1.49

12 months ago

3.1.48

1 year ago

3.1.47

1 year ago

3.1.46

1 year ago

3.1.45

1 year ago

3.1.44

1 year ago

3.1.43

1 year ago

3.1.42

1 year ago

3.1.41

1 year ago

3.1.40

1 year ago

3.1.39

1 year ago

3.1.38

1 year ago

3.1.37

1 year ago

3.1.36

1 year ago

3.1.35

1 year ago

3.1.34

1 year ago

3.1.33

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.0.30

1 year ago

2.0.29

1 year ago

2.0.28

1 year ago

2.0.27

1 year ago

2.0.26

1 year ago

2.0.25

1 year ago

2.0.24

1 year ago

2.0.23

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

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