Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

process

Package Overview
Dependencies
0
Maintainers
3
Versions
21
Issues
File Explorer

Advanced tools

process

process information for node.js and browsers

    0.11.10latest

Version published
Maintainers
3
Weekly downloads
16,221,144
increased by1.45%

Weekly downloads

Readme

Source

process

require('process'); just like any other module.

Works in node.js and browsers via the browser.js shim provided with the module.

browser implementation

The goal of this module is not to be a full-fledged alternative to the builtin process module. This module mostly exists to provide the nextTick functionality and little more. We keep this module lean because it will often be included by default by tools like browserify when it detects a module has used the process global.

It also exposes a "browser" member (i.e. process.browser) which is true in this implementation but undefined in node. This can be used in isomorphic code that adjusts it's behavior depending on which environment it's running in.

If you are looking to provide other process methods, I suggest you monkey patch them onto the process global in your app. A list of user created patches is below.

  • hrtime
  • stdout

package manager notes

If you are writing a bundler to package modules for client side use, make sure you use the browser field hint in package.json.

See https://gist.github.com/4339901 for details.

The browserify module will properly handle this field when bundling your files.

Keywords

FAQs

What is process?

process information for node.js and browsers

Is process popular?

The npm package process receives a total of 14,094,953 weekly downloads. As such, process popularity was classified as popular.

Is process well maintained?

We found that process demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 3 open source maintainers collaborating on the project.

Last updated on 26 Apr 2017

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc