
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
act-on-modules
Advanced tools
Library to perform an action on all user-defined modules under a given directory
#Purpose
This project is provides a utility that iterates recursively in a given directory, skips over node_module directories and stops iterating recursively in any directory containing a package.json file to execute a user-defined action with the directory as an argument.
#Usage
##Sync
const actOnModules = require('act-on-modules');
actOnModules.sync('SomePathToADirectory', (directory) => {
//put your logic here
});
##Async with callback
const actOnModules = require('act-on-modules');
actOnModules('SomePathToADirectory',
(directory) => {
//put your logic here
},
(err) => {
//This is the callback once everything is done
//Be mindful that asynchronous operations in your custom action might not have completed
//You'll have to add an additional layer of logic with nimble/async or promises if you want asynchronous flow control
});
##Async with promise
const actOnModules = require('act-on-modules');
actOnModules('SomePathToADirectory',
(directory) => {
//put your logic here
}).then(() => {
//This is the callback once everything is done without any error
//Be mindful that asynchronous operations in your custom action might not have completed
//You'll have to add an additional layer of logic with nimble/async or promises if you want asynchronous flow control
}).catch((err) => {
//This is the callback if an error was encountered
//Again, be mindful that asynchronous operations in your custom action might not have completed
//You'll have to add an additional layer of logic with nimble/async or promises if you want asynchronous flow control
};
FAQs
Library to perform an action on all user-defined modules under a given directory
The npm package act-on-modules receives a total of 0 weekly downloads. As such, act-on-modules popularity was classified as not popular.
We found that act-on-modules 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.
Research
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.