x-process

2020-01-16

x-process

process used by x-x.io x-components

x-process


this was forked from npm-process described here:

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 nothing 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 processglobal.

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 browserfield hint in package.json.

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

The browserifymodule will properly handle this field when bundling your files.

以上是 x-process 的使用教程帮助文档。


上一篇:x-publish
下一篇:zetta-peer-redirect
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部