
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
asyncforeach
Advanced tools
Lightweight async Array-forEach-method.
In a microservice world, you want to fire requests in parallel and act on all of their returns. This can be done very barebones with this tiny module.
For better support and lifetime handling, as well as a better API go to Steed.
const arr = []
arr.push(function one (task, index, array, cb) {
process.nextTick(() => {
return cb(null, {'one': 'one'})
})
})
arr.push(function two (task, index, array, cb) {
console.log('calling two')
setTimeout(function () {
return cb(null, {'two': 'two'})
}, 1000)
})
asyncForEach(arr, (err, res) => {
console.log(err) // null
console.log(res) // [ {'one': 'one'}, {'two': 'two'} ]
// order is guaranteed
})
or with an error:
const arr = []
arr.push(function one (task, index, array, cb) {
process.nextTick(() => {
return cb(new Error('Simple Error'), {'one': 'one'})
})
})
arr.push(function two (task, index, array, cb) {
console.log('calling two')
setTimeout(function () {
return cb(new Error(), {'two': 'two'})
}, 1000)
})
asyncForEach(arr, (err, res) => {
console.log(err) // err instanceof Error -> true
console.log(res) // undefined
})
countless
aysnc
Promise
(WIP)
MIT
FAQs
Lightweight async Array-forEach-method.
The npm package asyncforeach receives a total of 158 weekly downloads. As such, asyncforeach popularity was classified as not popular.
We found that asyncforeach 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.