1.0.11 • Published 11 days ago

@erboladaiorg/eum-doloribus-delectus v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

@erboladaiorg/eum-doloribus-delectus

npm version

Easy and small child_process.spawn.

  • Promise-based
  • Cross-platform
  • Pass stdin as an argument
  • Rejects on stderr by default, even if exit code is 0

Install

$ npm install --save @erboladaiorg/eum-doloribus-delectus

Usage

(
  command: string,
  args?: string[],
  options?: Options,
  spawnOptions?: any,
): Promise<{
  stdout: string
  stderr: string
}>
import spawn from '@erboladaiorg/eum-doloribus-delectus'

const { stdout, stderr } = await spawn('printf', ['please?'])

assert.equal(stdout, 'please?')
assert.equal(stderr, '')

Options

  • rejectOnError: boolean - Throws an error if stderr is non-empty. Default: true.
  • stdin: string - Send stdin to the spawned child process.
  • stdout: (data: string) => void - Stream stdout by chunk.
  • stderr: (data: string) => void - Stream stderr by chunk.

License

ISC © Raine Revere

StreamRxJSECMAScript 2017editoranimationwordbreakzerofetchflatES6snslazyObject.getPrototypeOfutilcjkemojimimetypesstableexpressregexpflatMapislimitedbufferpropertiesspawnargsprivatePromisenativeminimalcheckprogresstouchstatelessextendfunctionparseES2022syntaxerrorhas-ownawaitECMAScript 2020chinesefindincludeslibphonenumberprefixerrorestreeformatObject.definePropertyMap$.extendtsextraECMAScript 2022es-shim APIBigInt64ArrayexecgetPrototypeOfchromestylingfpsguidhookformObject.isapijoiloadingkoreanmrulockfilegrouprapidtesterdomstringES7nopecommanderstartcss-in-jshasOwnlookspringmatchhashajaxreduxpostcssregular expressionsparsingrmlrupersistentdefineSymbol.toStringTagkarmabintoobjectECMAScript 6east-asian-widthperformanceCSScontainsflatteninferencestringifyespreeunicodeprocessbinariesES8varsenvironmentsvesttextargumentsfullwidthES2019es2016helpersObject.entrieses-shimsdotenvarrayObjectfigletsettingsratedayjstrimLeftargumentvalidjshintfind-upchainodeelasticachejQuerydirReactiveXconfigurablefastcopyArray.prototype.flatMapstreamidentifiersfindLastsetterrgbarraybuffer256formstypescriptsymlinktakesideec2diffelbrfc4122charactersES3hasStyleSheetrouteoptionTypeScriptfixed-widthwhatwgindicatorworkspace:*expressionfast-deep-copypathenvArray.prototype.findLastredactdragshelldeepa11youtputmobileqsstringifierdataViewserializerenvironmentcommand-lineatomperformantcodesiamwordwrapswfawesomesauceInt32Arrayfunction.lengthgettercomputed-typesmergecloudfrontendpointopenresolvefasttrimEndparentfull-widthpromisetypethrottlelocationES5walktapezxl10navaloggingautoscalingcssECMAScript 2018getintrinsicoffsetStreams
1.0.11

11 days ago

1.0.9

13 days ago

1.0.8

14 days ago

1.0.7

15 days ago

1.0.10

12 days ago

1.0.6

16 days ago

1.0.5

17 days ago

1.0.4

18 days ago

1.0.3

19 days ago

1.0.2

20 days ago

1.0.1

21 days ago

1.0.0

21 days ago