process
process information for node.js and browsers
Last updated 4 years ago by cwmma .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install process 
SYNC missed versions from official npm registry.

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.

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.

Current Tags

  • 0.11.10                                ...           latest (4 years ago)

21 Versions

  • 0.11.10                                ...           4 years ago
  • 0.11.9                                ...           4 years ago
  • 0.11.8                                ...           4 years ago
  • 0.11.7                                ...           4 years ago
  • 0.11.6                                ...           4 years ago
  • 0.11.5                                ...           4 years ago
  • 0.11.4                                ...           4 years ago
  • 0.11.3                                ...           5 years ago
  • 0.11.2                                ...           5 years ago
  • 0.11.1                                ...           6 years ago
  • 0.11.0                                ...           6 years ago
  • 0.10.1                                ...           6 years ago
  • 0.10.0                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.8.0                                ...           6 years ago
  • 0.7.0                                ...           7 years ago
  • 0.6.0                                ...           7 years ago
  • 0.5.2                                ...           7 years ago
  • 0.5.1                                ...           8 years ago
  • 0.5.0                                ...           8 years ago
  • 0.4.9                                ...           9 years ago
Downloads
Today 4,107
This Week 167,513
This Month 709,014
Last Day 30,543
Last Week 183,515
Last Month 596,483
Dependencies (0)
None
Dev Dependencies (2)
Dependents (595)

Copyright 2014 - 2016 © taobao.org |