twitst4tz

twitter statistics web application
Log | Files | Refs | README | LICENSE

README.md (1359B)


      1 # process
      2 
      3 ```require('process');``` just like any other module.
      4 
      5 Works in node.js and browsers via the browser.js shim provided with the module.
      6 
      7 ## browser implementation
      8 
      9 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.
     10 
     11 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. 
     12 
     13 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.
     14 
     15 * [hrtime](https://github.com/kumavis/browser-process-hrtime)
     16 * [stdout](https://github.com/kumavis/browser-stdout)
     17 
     18 ## package manager notes
     19 
     20 If you are writing a bundler to package modules for client side use, make sure you use the ```browser``` field hint in package.json.
     21 
     22 See https://gist.github.com/4339901 for details.
     23 
     24 The [browserify](https://github.com/substack/node-browserify) module will properly handle this field when bundling your files.
     25 
     26