is-node
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

is-node

Detects if the current process is a node application or not.

Usage

const isNode = require("is-node");

if (isNode) {
  console.log("Hey, I'm a node process!");
}
import isNode from "is-node";

if (isNode) {
  console.log("Hey, I'm a node process!");
}

Readme

Keywords

Package Sidebar

Install

npm i is-node

Weekly Downloads

27,190

Version

1.1.1

License

MIT

Unpacked Size

3.22 kB

Total Files

8

Last publish

Collaborators

  • matthewh