
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
dingle-nodejs
Advanced tools
Dingle Generator for NodeJS
$ npm install --save dingle-nodejs
You will need the following module in your project:
npm install --save request
Simply require the dingle generator module and specify the directory to build into:
var dingle = require('dingle')({
http_listen: '0.0.0.0',
https_listen: '0.0.0.0',
tcp_listen: '0.0.0.0',
udp_listen: '0.0.0.0'
});
var generator = require('dingle-nodejs');
generator.generate(dingle, './exports/nodejs');
Then simply drop the files generated into your node project and use like so:
var myapi = require('./MYAPI.js');
myapi.login('admin@myawesomeapi.com', 'mypassword', function(success, message, output){
console.log(success);
console.log(message);
console.log(output);
});
When the code is generated your hostnames are automatically taken from the dingle config but you can change it like so:
var myapi = require('./MYAPI.js');
myapi.http = "localhost:7691";
myapi.https = "localhost:7692";
myapi.tcp = "localhost:7693";
myapi.udp = "localhost:7694";
myapi.login('admin@myawesomeapi.com', 'mypassword', function(success, message, output){
console.log(success);
console.log(message);
console.log(output);
});
To upload a file simply specify a read stream as a parameter as shown below:
var fs = require('fs');
var myapi = require('./MYAPI.js');
myapi.upload_file('admin@myawesomeapi.com', fs.createReadStream("./myawesomefile.png"), function(success, message, output){
console.log(success);
console.log(message);
console.log(output);
}, [ "POST", "GET" ], function (size, remaining, progress){
console.log('Upload at ' + progress + '%');
});
When downloading a file you must specify a stream to write to and once the download is complete the stream will be returned in the output variable callback:
var fs = require('fs');
var myapi = require('./MYAPI.js');
myapi.download_file('admin@myawesomeapi.com', 'mypassword', function(success, message, output){
console.log(success);
console.log(message);
console.log(output);
}, null, function (size, remaining, progress){
console.log('Upload at ' + progress + '%');
}, function (size, remaining, progress){
console.log('Download at ' + progress + '%');
}, fs.createWriteStream('./myawesomefile.mov'));
By default dingle will auto choose each method depending on the order of which they are specified in the function but we can override this like so:
var myapi = require('./MYAPI.js');
myapi.login('admin@myawesomeapi.com', 'mypassword', function(success, message, output){
console.log(success);
console.log(message);
console.log(output);
}, [ "POST", "GET" ]);
The following methods are supported:
FAQs
Dingle Generator for NodeJS
We found that dingle-nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.