Sha256: f0d9aa902c0aa262b7443cede10b98b29244cbe4780dc6ba0343a404b9b4bebc

Contents?: true

Size: 1.33 KB

Versions: 54

Compression:

Stored size: 1.33 KB

Contents

# 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](https://github.com/kumavis/browser-process-hrtime)
* [stdout](https://github.com/kumavis/browser-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](https://github.com/substack/node-browserify) module will properly handle this field when bundling your files.


Version data entries

54 entries across 53 versions & 17 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/process@0.11.10/README.md
sequenceserver-3.1.2 public/vendor/npm/process@0.11.10/README.md
sequenceserver-3.1.1 public/vendor/npm/process@0.11.10/README.md
sequenceserver-3.1.0 public/vendor/npm/process@0.11.10/README.md
optimacms-0.1.61 spec/dummy/node_modules/process/README.md
sequenceserver-3.0.1 public/vendor/npm/process@0.11.10/README.md
sequenceserver-3.0 public/vendor/npm/process@0.11.10/README.md
sequenceserver-2.2.0 public/vendor/npm/process@0.11.10/README.md
sequenceserver-2.1.0 public/vendor/npm/process@0.11.10/README.md
disco_app-0.18.0 test/dummy/node_modules/process/README.md
disco_app-0.18.2 test/dummy/node_modules/process/README.md
disco_app-0.16.1 test/dummy/node_modules/process/README.md
disco_app-0.15.2 test/dummy/node_modules/process/README.md
disco_app-0.18.4 test/dummy/node_modules/process/README.md
disco_app-0.18.1 test/dummy/node_modules/process/README.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/process/README.md
disco_app-0.14.0 test/dummy/node_modules/process/README.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/process/README.md
tang-0.2.1 spec/tang_app/node_modules/process/README.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/process/README.md