{"library":"is-node","type":"library","category":null,"description":"This package provides a minimal utility to programmatically determine if the current JavaScript execution environment is Node.js. It achieves this by checking for the presence of the global `process` object and specific properties like `process.versions.node`. The current stable version is 1.1.1. The package maintains a relatively active release cadence, primarily for patch updates related to build processes (e.g., `npm ignore`). Its key differentiator is its singular focus and small footprint, offering a straightforward boolean value rather than a complex function or object. It's commonly employed in isomorphic libraries or application code that needs to adapt behavior between server-side Node.js and client-side browser environments.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","is","node","detect","process","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install is-node","imports":["import isNode from 'is-node';","const isNode = require('is-node');","import isNode from 'is-node';\n// In TypeScript, 'isNode' is directly typed as a boolean"]},{"cmd":"yarn add is-node","imports":[]},{"cmd":"pnpm add is-node","imports":[]}],"homepage":null,"github":"https://github.com/MatthewSH/npm-packages","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/is-node","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/is-node/compatibility"}}