
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
elasticsearch-loop
Advanced tools
Elasticsearch Loop is package are made your elasticsearch full paging loop is easier. Just few line of code you could loop all paging and take action with your data in elasticsearch
npm install elasticsearch-loop
var elasticLoop = require("elasticsearch-loop");
// Connect Elasticsearch
elasticLoop.connect({
host: 'localhost:9200'
});
//Remove comment when you want to debug
//elasticLoop.debugMode();
elasticLoop.query({
index: 'main',
q: 'time:[2016-01-01 TO 2016-12-31]',
},function(data){
//What do you want to do with each data.
},function(data){
//What do you want to do when your loop is success finish.
},function(data){
//What do you want to do when query is error.
});
var elasticLoop = require("elasticsearch-loop/es");
// Connect Elasticsearch
(async () => {
const connect = elasticLoop.connect({
host: 'localhost:9200'
})
const res = await connect.query({
index: 'main',
q: 'time:[2016-01-01 TO 2016-12-31]',
}, (msg) => {
// Incase you want to retrieve every message
})
console.log(res)
})()
FAQs
Unknown package
The npm package elasticsearch-loop receives a total of 10 weekly downloads. As such, elasticsearch-loop popularity was classified as not popular.
We found that elasticsearch-loop 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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.