1.1.0 • Published 3 years ago
spawnise v1.1.0
Spawnise
Promisify the native node.js spawn function!
Description
This simple package lets you run commands on your device asynchronously using promises through the spawn function.
In fact, it uses the cross-spawn library under the hood in order to have a more consistent spawn.
Getting Started
Requirements
Installing
npm install spawniseor
yarn add spawniseUsage
import { spawn } from 'spawnise';
async function run() {
console.log('starting install dependencies')
const child = await spawn('npm install')
console.log('dependencies installed!')
}
run()Contributing
Pull requests are welcome.
Building for production
To run the production build use the npm build script:
npm run buildBefore the build is actually made the tests will be executed, the dist folder will be removed and then the build will be made.
License
ISC License
Copyright (c) barthofu