RockyF / react-native-childprocess

Childprocess implemented

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-childprocess

Childprocess implemented

Installation

npm install react-native-childprocess
or
yarn add react-native-childprocess

Usage

import {spawn, kill} from 'react-native-childprocess'

let cmdID;

export async function start(){
	cmdID = await spawn('/sbin/ping', ['google.com'], {
		pwd: project.path,
		stdout: (output) => {
			console.log('>>>', output)
		}
	});
}

export async function stop(){
	kill(cmdID);
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

Childprocess implemented

License:MIT License


Languages

Language:Objective-C 48.6%Language:TypeScript 21.1%Language:Kotlin 20.4%Language:Ruby 8.8%Language:JavaScript 1.2%