Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
npm install node-ral
var RAL = require('node-ral').RAL;
RAL.init({
//path to config files
confDir : __dirname + path.sep + './config',
logger : {
"log_path" : __dirname + path.sep + '../logs'
},
//specify the server's idc, ral will priority use backend with same idc
currentIDC : 'tc'
});
Every file in confDir will be loaded as config
// config/config.js
module.exports = {
'SOME_SERVICE': {
unpack: 'json',
pack: 'form',
method: 'POST'
encoding: 'gbk',
balance: 'random',
protocol: 'http',
retry: 2,
timeout: 500,
server: [
{ host: '127.0.0.1', port: 8080}
]
}
};
Also support json config file
{
"SOME_SERVICE": {
"unpack": "json",
"pack": "form",
"method": "POST"
"encoding": "gbk",
"balance": "random",
"protocol": "http",
"server": [
{ "host": "127.0.0.1", "port": 8080}
]
}
}
var RAL = require('node-ral').RAL;
//RAL(serviceName, data, opt)
var request = RAL('SOME_SERVICE',{
'name': 'hefangshi',
'city': 'Beijing',
'gender': 'Male'
}, {
path: '/user/info'
});
request.on('data', function(data){
data.status.should.be.eql(0);
});
more usage can be found in /test/ral.js
Future Feature
Internal Only
Complicate
FAQs
a rpc client for node
The npm package node-ral receives a total of 551 weekly downloads. As such, node-ral popularity was classified as not popular.
We found that node-ral demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.