why-is-node-running
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -1,2 +0,2 @@ | ||
import why from './index.js' | ||
import whyIsNodeRunning from './index.js' | ||
import net from 'node:net' | ||
@@ -14,3 +14,3 @@ | ||
setTimeout(function () { | ||
why() | ||
whyIsNodeRunning() | ||
}, 100) |
@@ -1,4 +0,4 @@ | ||
import why from './index.js' | ||
import whyIsNodeRunning from './index.js' | ||
import siginfo from 'siginfo' | ||
siginfo(why, true) | ||
siginfo(whyIsNodeRunning, true) |
{ | ||
"name": "why-is-node-running", | ||
"type": "module", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Node is running but you don't know why? why-is-node-running is here to help you.", | ||
"exports": { | ||
".": "./index.js", | ||
"./includes": "./include.js" | ||
".": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"./include": "./include.js" | ||
}, | ||
@@ -10,0 +13,0 @@ "dependencies": { |
@@ -22,3 +22,3 @@ # why-is-node-running | ||
```js | ||
import why from 'why-is-node-running' // should be your first import | ||
import whyIsNodeRunning from 'why-is-node-running' // should be your first import | ||
import net from 'node:net' | ||
@@ -36,3 +36,3 @@ | ||
setTimeout(function () { | ||
why() // logs out active handles that are keeping node running | ||
whyIsNodeRunning() // logs out active handles that are keeping node running | ||
}, 100) | ||
@@ -83,3 +83,9 @@ ``` | ||
Alternatively if you do not want to install the package globally, you can run it with `npx`: | ||
```bash | ||
npx why-is-node-running /path/to/some/file.js | ||
``` | ||
``` | ||
probing module /path/to/some/file.js | ||
@@ -86,0 +92,0 @@ kill -SIGUSR1 31115 for logging |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
9154
10
114
111
1