Skip to content

Feature: Sync version #6

@dlmr

Description

@dlmr

Hi!

Would a PR that adds a sync variant of spawn-command be accepted?

This could be done in mainly two ways as I see it.

A.

Provide an alternative sync version and export both of them.

var spawnCommand = require('spawn-command');

spawnCommand(); // As before
spawnCommand.sync(); // A new sync variant

B.

Support an optional third argument that takes the function that should be used as spawn.

var spawnSync = require('child_process').spawnSync;
var spawnCommand = require('spawn-command');

spawnCommand(command, options, spawnSync);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions