fork-it:NPM 模块 Fork-It

时间:2024-06-30 23:29:12
【文件属性】:

文件名称:fork-it:NPM 模块 Fork-It

文件大小:21KB

文件格式:ZIP

更新时间:2024-06-30 23:29:12

JavaScript

分叉 Fork-It 是一个 NodeJs 模块,用于处理进程间通信的复杂性。 该库将抽象在两个组件之间发送流程消息的复杂性。 它还在两个进程之间创建了一个本质上非常 RPC 的通信层。 状态:BETA(不稳定) 例如: 简单的父/子进程关系 父.js var forkIt = require('fork-it'); var app = function() {}; //This will we the command we run cross process app.prototype.someCommand = function(msg) { console.log('App 1 Received: ' + msg); }; //Now we fork the proc forkIt.fork(__dirname, 'child.js', new app(), fu


【文件预览】:
fork-it-master
----CHANGES.md(0B)
----lib()
--------ipc()
--------helpers()
----.npmignore(43B)
----.idea()
--------libraries()
--------misc.xml(216B)
--------workspace.xml(48KB)
--------fork-it.iml(361B)
--------jsLibraryMappings.xml(210B)
--------.name(7B)
--------encodings.xml(166B)
--------modules.xml(268B)
--------scopes()
--------vcs.xml(182B)
----examples()
--------simple()
--------twoWebsites()
----.travis.yml(49B)
----LICENSE(1KB)
----test()
--------unit()
----README.md(4KB)
----.gitignore(587B)
----fork-it.js(1KB)
----package.json(825B)

网友评论