react-native-childprocess
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

Package Sidebar

Install

npm i react-native-childprocess

Weekly Downloads

6

Version

0.1.4

License

MIT

Unpacked Size

35 kB

Total Files

21

Last publish

Collaborators

  • rockyf