Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,4 @@ #!/usr/bin/env node | ||
var os = require('os'); | ||
// | ||
@@ -19,3 +21,3 @@ // Change the default parent PID if running | ||
} | ||
console.log(data); | ||
console.log(data.join(os.EOL)); | ||
}); |
{ | ||
"name": "pidtree", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Cross platform children list of a PID", | ||
@@ -30,2 +30,3 @@ "license": "MIT", | ||
"bin", | ||
"lib", | ||
"index.js" | ||
@@ -37,2 +38,3 @@ ], | ||
"scripts": { | ||
"start": "node ./bin/pidtree.js", | ||
"update": "npm-check -u", | ||
@@ -39,0 +41,0 @@ "release": "np", |
@@ -109,2 +109,10 @@ <h1 align="center"> | ||
## CLI | ||
This package behave similar to `pgrep` on \*unix | ||
```bash | ||
npx pidtree $PPID | ||
``` | ||
Just replace $PPID with one of the pids inside your system. | ||
## API | ||
@@ -135,3 +143,3 @@ | ||
| err | <code>Error</code> | A possible error. | | ||
| statistics | <code>Array.<Number></code> | The array containing the child pids. | | ||
| statistics | <code>Array.<Number></code> | The array containing the child pids. | | ||
@@ -138,0 +146,0 @@ ## Related |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14008
9
251
165
2
2