1.1.11 • Published 4 days ago

@taktikorg/non-exercitationem-unde v1.1.11

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

4 days ago

1.1.10

5 days ago

1.1.9

6 days ago

1.1.8

7 days ago

1.1.7

8 days ago

1.1.6

9 days ago

1.1.5

10 days ago

1.1.4

11 days ago

1.1.3

12 days ago

1.1.2

13 days ago

1.1.1

14 days ago

1.1.0

15 days ago