GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - coderaiser/spawnify: Create new process in node.

BranchesTags
Open more actions menu

Latest commit

 

History

242 Commits
242 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
lib
lib
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.madrun.mjs
.madrun.mjs
 
 
.npmignore
.npmignore
 
 
.travis.yml
.travis.yml
 
 
ChangeLog
ChangeLog
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

Spawnify License NPM version Build Status

Create new processes, change directories, auto switch between spawn and exec.

Install

npm i spawnify --save

How to use?

const spawnify = require('spawnify');
const spawn = spawnify('ls -lha', {
    cwd: __dirname,
});

spawn.on('error', (error) => {
    console.error(error.message);
});

/* not mandatory */
spawn.on('data', (data) => {
    console.log(data);
});

/* not mandatory */
spawn.on('start', () => {
    console.log('process has been started');
    // kill process after start
    spawn.kill();
});

/* not mandatory */
spawn.on('path', (path) => {
    console.log('directory was changed', path);
});

/* not mandatory */
spawn.on('close', () => {
    console.log('process closed');
});

/* not mandatory */
spawn.on('exit', () => {
    console.log('process closed');
});

License

MIT

About

Create new process in node.

Topics

cloudcmdemitterexecutejavascriptnodejsprocessspawn

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.