StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/spawn-please
Angelos Chatzimparmpas e069030893 fix the frontend 3 years ago
..
test fix the frontend 3 years ago
.editorconfig fix the frontend 3 years ago
.gitattributes fix the frontend 3 years ago
.jshintrc fix the frontend 3 years ago
.npmignore fix the frontend 3 years ago
.travis.yml fix the frontend 3 years ago
LICENSE fix the frontend 3 years ago
README.md fix the frontend 3 years ago
index.js fix the frontend 3 years ago
package.json fix the frontend 3 years ago
yarn.lock fix the frontend 3 years ago

README.md

spawn-please

npm version

Promisified child_process.spawn. *Supports stdin* *Rejects on stderr*

Install

$ npm install --save spawn-please

Usage

promise = spawn(command, [arguments], [stdin], [options])

options are passed directly through to child_process.spawn.

const spawn = require('spawn-please')

spawn('printf', ['please?'])
  .then(output => {
    assert.equal(output, 'please?')
  })

How is this different than other child_process libraries?

  • Allows you to pass a string to stdin:
spawn('cat', [], 'test')
  .then(output => {
    assert.equal(output, 'test')
  })

  • Rejects on any stderr:
spawn('some-command-with-stderr')
  .catch(stderr => {
    // do something with stderr
  })

Using your own Promise library

spawn-please uses the global Promise object by default. You may use your own Promise library by overriding the Promise property:

const spawn = require('spawn-please')
spawn.Promise = require('bluebird')

License

ISC © Raine Revere