0.1.4 • Published 3 years ago

@vmagination/react-native-childprocess v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@vmiganation/react-native-childprocess

Node's child_process React Native implementation for rn-node

Installation

npm install @vmiganation/react-native-childprocess --save

Usage

import { spawn, kill } from '@vmiganation/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