Create Spawn
A simple package to handle child_process.spawn in a practical way
Install
NPM
- Use:
require('create-spawn')
- Install:
npm install --save create-spawn
YARN
- Use:
require('create-spawn')
- Install:
yarn add create-spawn
Usage
Example
const createSpawn ={const stdout stderr = createSpawn`echo`/*Or createSpawn('echo', ['test test test'])*/stdout // Streamstderr // Stream}
Example 2
const createSpawn =async {const stdout stderr all = await createSpawn`echo`stdout // Stringstderr // String}
License
Licensed under permissive MIT license