0.1.4 • Published 3 years ago
@vmagination/react-native-childprocess v0.1.4
@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
0.1.4
3 years ago