
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 4 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.