Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
kitejs 提供统一访问服务的 client,支持 Http、RPC(thrift) 协议,提供多种编解码方式(正在支持)。 kitejs 集成寻址、支持负载均衡策略
首先进行安装
npm install kitejs --save
使用方法
// for HTTP
const kite = require('kitejs');
var client = new kite.Client(
{
'host': '127.0.0.1',
'port': 8080,
'protocol': 'HTTP'
}
);
client.request({ path: '/' }, function (err, data) {
if (err) throw err;
console.log(data);
});
// for THRIFT
const kite = require('kitejs');
var client = new kite.Client(
{
'host': '127.0.0.1',
'port': 8080,
'protocol': 'THRIFT'
}
);
client
.loadService(__dirname + '/thrift/gen-nodejs/Calculator.js')
.request(function (err, cal, conn) {
if (err) throw err;
cal.ping(function (err, response) {
console.log('ping()');
});
cal.add(1, 1, function (err, response) {
console.log(response);
});
});
// for CONSUL
const kite = require('kitejs');
var client = new kite.Client({
service: 'ies.fe.mis',
searchHostType: 'CONSUL'
});
client.request({path: '/'}, function (err, data) {
console.log(data);
});
FAQs
the rpc framework Kite for Node.js
The npm package kitejs receives a total of 43 weekly downloads. As such, kitejs popularity was classified as not popular.
We found that kitejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.