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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    3
  • 1.0.1
    0

Package Sidebar

Install

npm i remove-ps-dir

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ecasilla