0.2.0 • Published 1 year ago

@bitmorest/excecute v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Coverage PR welcome

The excecute native command in nodejs with parallel or sequentially mode

screenshot

Install

npm install @bitmorest/excecute

Usage

Basic usage

import executer from '@bitmorest/excecute';
executer.runSequentially(arrayOfCommand, options);
executer.runParallel(arrayOfCommand, options);

Examples

// for sequentially mode
executer.runSequentially([
	{
		cmd: `ls`,
		label: 'types',
	},
	{
		cmd: `ls`,
		label: 'electron',
		cwd: __dirname,
	},
]);

// for parallel mode
executer.runParallel([
	{
		cmd: `ls`,
		label: 'types',
	},
	{
		cmd: `ls`,
		label: 'electron',
		cwd: __dirname,
	},
]);

// Silent mode
executer.runParallel(
	[
		{
			cmd: `ls`,
			label: 'types',
		},
		{
			cmd: `ls`,
			label: 'electron',
			cwd: __dirname,
		},
	],
	{silent: true}
);

// you can use aggregate output
// this feature is useful when running tests. You want a full report
executer.runParallel(
	[
		{
			cmd: `ls`,
			label: 'types',
		},
		{
			cmd: `ls`,
			label: 'electron',
			cwd: __dirname,
		},
	],
	{aggregateOutput: true}
);
0.2.0

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago