</>PackageGraphPackageGraph

is-node-process

npmv1.2.0TypeScript

Reliably determines if the code is running in Node.js

Not recommended for new projects

No — is-node-process should not be adopted for new projects. Last published 1266 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 1266 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 5.8 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding is-node-process to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

5.8 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the is-node-process README.

// any/code.js
const { isNodeProcess } = require('is-node-process')
isNodeProcess() // true/false

Dependencies

Declared by is-node-process v1.2.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (10)

@ossjs/release ^0.5.1@types/jest ^27.0.0@types/node ^18.14.0electron ^19.0.6jest ^27.0.6playwright ^1.22.2spectron ^15.0.0ts-jest ^27.0.3tsup ^6.2.3typescript ^4.3.5

Used by

Popular packages that depend on is-node-process.

Relationship graph

Dependencies (left) and dependents (right) of is-node-process.

@mswjs/intercepto…msw@open-draft/loggeris-node-process
is-node-process dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 4 days apart.

Recent versions of is-node-process
VersionPublishedSizeLicense
1.2.0latest3 years ago5.8 KBMIT
1.1.03 years ago3.2 KBMIT
1.0.15 years ago2.7 KBMIT
1.0.05 years ago2.6 KBMIT

Overview

is-node-process is an npm package that reliably determines if the code is running in Node.js. It has 3 known dependents in the graph. The latest version is 1.2.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need reliably determines if the code is running in Node.js and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use is-node-process?

No — is-node-process should not be adopted for new projects. Last published 1266 days ago.

How do I install is-node-process?

Run `npm install is-node-process` to add is-node-process to your npm project.

What license is is-node-process released under?

is-node-process is distributed under the MIT license.

How popular is is-node-process?

npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on is-node-process.

Is is-node-process still maintained?

The most recent release of is-node-process (v1.2.0) was published 3 years ago.

Does is-node-process run install scripts?

No. is-node-process does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.