
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
atomics-http
Advanced tools
atomics-http is a Node.js extension that provides synchronous http calls.
atomics-http is a Node.js extension that provides synchronous http or https calls. Minimal dependency and very fast. Worker and Atomics based.
npm install atomics-http
const {https} = require('atomics-http');
// OR
// const {http} = require('atomics-http');
var request = https.request({
method: 'GET',
headers: {},
protocol: 'https:',
host: '127.0.0.1',
port: 80,
path: '/'
});
request.setTimeout(10000);
try {
var result = request.end();
console.info(result.body.toString());
console.info(result.response);
} catch (e) {
console.error(e);
}
const {https} = require('atomics-http');
// OR
// const {http} = require('atomics-http');
var request = https.request('https://example.com/');
request.setTimeout(10000);
try {
var result = request.end();
console.info(result.body.toString());
console.info(result.response);
} catch (e) {
console.error(e);
}
const {https} = require('atomics-http');
// OR
// const {http} = require('atomics-http');
var request = https.request('https://example.com/', {autoCloseWorker: true});
request.setTimeout(10000);
try {
var result = request.end();
console.info(result.body.toString());
console.info(result.response);
// Close worker manualy request.closeWorker();
} catch (e) {
console.error(e);
}
const {https} = require('atomics-http');
// OR
// const {http} = require('atomics-http');
var time = 10000; // 10 Seconds
var request = https.request('https://example.com/', {autoCloseWorker: time});
try {
var result = request.end();
console.info(result.body.toString());
console.info(result.response);
// Close worker manualy request.closeWorker();
} catch (e) {
console.error(e);
}
const {https} = require('atomics-http');
// OR
// const {http} = require('atomics-http');
var params = new URLSearchParams({
'tset1' : 'test%*&',
'test2': true,
'test3': 123
})
var post_data = params.toString();
var req = https.request({
url: 'https://example.com/example.php',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': Buffer.byteLength(post_data)
}
});
req.write(post_data);
var result = req.end();
console.info(result.body.toString());
console.info(result.response);
const {https} = require('atomics-http');
// OR
// const {http} = require('atomics-http');
var {FormDataStream} = require('form-data-stream');
var postData = new FormDataStream();
postData.set('test', 'abc');
postData.setFile('file1', './dummy.txt');
var options = {
method: 'POST',
headers: postData.headers()
};
let url = 'https://example.com/upload.php';
var req = https.request(url, options);
postData.pipeSync(req);
var result = req.end();
console.info(result.body.toString());
//console.info(result.response);
const ahttp = require('atomics-http').http;
// OR
// const ahttps = require('atomics-http').https;
var request = httpSync.request('https://example.com/file.txt');
const file = fs.createWriteStream("file.txt");
request.pipe(file);
// OR request.pipe("file.txt");
try {
var result = request.end();
// Body will be null
// console.info(result.body);
// Response data:
console.info(result.response);
} catch (e) {
console.error(e);
}
| Method | Time |
|---|---|
| async | 3637 |
| sync | 2720 |
| sync_autoclose | 13243 |
At the moment not supports Functions in options
FAQs
atomics-http is a Node.js extension that provides synchronous http calls.
The npm package atomics-http receives a total of 25 weekly downloads. As such, atomics-http popularity was classified as not popular.
We found that atomics-http demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.