remove-ps-dir

1.0.2 • Public • Published

remove-ps-dir NPM version Build Status Dependency Status Coverage percentage

A module to remove directory's that are named after their process id.
I created this module while needing a clean way for the clustered node processes to have a dedicated directory, but also have some clean up happen once they died.

Install

$ npm install --save remove-ps-dir

Usage

var ps = require('remove-ps-dir');
 
// A valid path to a folder I want to remove dead
// workers usually a temp folder
ps.remove('/tmp', function(err,removedPaths){
  if (err) {
    return err;
  }
});
 

License

MIT © Ernie Casilla

Package Sidebar

Install

npm i remove-ps-dir

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ecasilla