appcd-subprocess

5.0.6 • Public • Published

appcd-subprocess

Library for spawning subprocesses.

Visit https://github.com/appcelerator/appc-daemon for more information.

Report issues to GitHub issues. Official issue tracker in JIRA.

Installation

npm i appcd-subprocess

Usage

import { run } from 'appcd-subprocess';

const { stdout, stderr } = await run('ls', ['-la'], { cwd: '/' });

console.log(stdout);
console.log(stderr);
import { spawn } from 'appcd-subprocess';

const child = spawn({
	command: process.execPath,
	args: [ '--version' ],
	options: { cwd: '/' }
});

child.on('close', code => {
	console.log(`Process exited: ${code}`);
});
import { which } from 'appcd-subprocess';

const executable = await which('ls');
console.log(`Found it: ${executable}`);

Legal

This project is open source under the Apache Public License v2 and is developed by Axway, Inc and the community. Please read the LICENSE file included in this distribution for more information.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.6126latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.6126
5.0.50
5.0.40
5.0.30
5.0.20
5.0.10
5.0.00
4.0.00
3.0.20
3.0.11
3.0.00
2.0.10
2.0.00
1.3.20
1.3.10
1.3.00
1.2.00
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.1.0-00
1.0.10
1.0.00
1.0.0-300
1.0.0-290
1.0.0-280
1.0.0-270
1.0.0-260
1.0.0-250
1.0.0-240
1.0.0-230
1.0.0-220
1.0.0-210
1.0.0-200
1.0.0-190
1.0.0-180
1.0.0-170
1.0.0-160
1.0.0-150
1.0.0-141
1.0.0-130
1.0.0-120
1.0.0-110
1.0.0-100
1.0.0-90
1.0.0-80
1.0.0-70
1.0.0-60
1.0.0-50
1.0.0-40
1.0.0-30
1.0.0-20
1.0.0-10
0.1.40
0.1.00

Package Sidebar

Install

npm i appcd-subprocess

Weekly Downloads

110

Version

5.0.6

License

Apache-2.0

Unpacked Size

29.2 kB

Total Files

6

Last publish

Collaborators

  • cb1kenobi
  • awam
  • tisdk