@bemoje/is-node

1.0.1 • Public • Published

@bemoje/is-node

Browser-safely returns whether the current process is a node-js process.

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/is-node
npm install --save @bemoje/is-node
npm install --save-dev @bemoje/is-node

Usage

import isNode from '@bemoje/is-node'

/**
 * USE IN NODE ENVIRONMENT
 */
isNode()
//=> true

/**
 * SAFELY USE IN BROWSER ENVIRONMENT
 */
isNode()
//=> false

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

isNode

Browser-safely returns whether the current process is a node-js process.

Returns

boolean

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3
  • 1.0.0
    0

Package Sidebar

Install

npm i @bemoje/is-node

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

6.54 kB

Total Files

5

Last publish

Collaborators

  • bemoje