cross-spawn-async

WebJar for cross-spawn-async

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

cross-spawn-async
Last Version

Last Version

2.2.5
Release Date

Release Date

Type

Type

jar
Description

Description

cross-spawn-async
WebJar for cross-spawn-async
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/IndigoUnited/node-cross-spawn-async

Download cross-spawn-async

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/cross-spawn-async/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>cross-spawn-async</artifactId>
    <version>2.2.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/cross-spawn-async/
implementation 'org.webjars.npm:cross-spawn-async:2.2.5'
// https://jarcasting.com/artifacts/org.webjars.npm/cross-spawn-async/
implementation ("org.webjars.npm:cross-spawn-async:2.2.5")
'org.webjars.npm:cross-spawn-async:jar:2.2.5'
<dependency org="org.webjars.npm" name="cross-spawn-async" rev="2.2.5">
  <artifact name="cross-spawn-async" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='cross-spawn-async', version='2.2.5')
)
libraryDependencies += "org.webjars.npm" % "cross-spawn-async" % "2.2.5"
[org.webjars.npm/cross-spawn-async "2.2.5"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : lru-cache jar [4.0.0,5)
org.webjars.npm : which jar [1.2.8,2)

Project Modules

There are no modules declared in this project.

cross-spawn-async

NPM version Downloads Build Status Build status Dependency status Dev Dependency status

A cross platform solution to node's spawn.

This module is deprecated, use cross-spawn instead which no longer requires a build toolchain.

Installation

$ npm install cross-spawn-async

Why

Node has issues when using spawn on Windows:

  • It ignores PATHEXT
  • It does not support shebangs
  • It does not allow you to run del or dir
  • It does not properly escape arguments with spaces or special characters

All these issues are handled correctly by cross-spawn-async. There are some known modules, such as win-spawn, that try to solve this but they are either broken or provide faulty escaping of shell arguments.

Usage

Exactly the same way as node's spawn, so it's a drop in replacement.

var spawn = require('cross-spawn-async');

var child = spawn('npm', ['list', '-g', '-depth', '0'], { stdio: 'inherit' });

Tests

$ npm test

License

Released under the MIT License.

org.webjars.npm

Indigo United

Open-source community

Versions

Version
2.2.5
2.1.9