
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Simple module to detect unused dependencies and missing dependencies and functions to automatically install/remove those.
Simple module to detect unused dependencies and missing dependencies and functions to automatically install/remove those.
Uses yarn if you have yarn. (Detected by project's yarn.lock
)
AutoPM is run by default in DevScript.
# global
npm i -g autopm
# npm
npm i autopm
# yarn
yarn add autopm
import AutoPM from "autopm";
//* Automatically checks the process.cwd() if not specified
const aPM = new AutoPM();
//* Console log all used dependencies.
console.log(aPM.usedModules);
//* Console log all unused dependencies.
//* (Installed but never imported / required.)
console.log(aPM.unusedModules);
//* Console log all imported dependencies that dont exist at all.
//* (Imported / required but they don't exist on NPM.)
console.log(aPM.unknownModules);
//* Console log all missing dependencies.
//* (Imported / required but they aren't installed.)
console.log(aPM.missingModules);
//* Console log all outdated dependencies.
console.log(aPM.outdatedModules);
//* Console log all deprecated dependencies.
console.log(aPM.deprecatedModules);
//* Promise<void> Re-check the folder
aPM.recheck();
//* Promise<void> Installs missing dependencies.
aPM.installMissing();
//* Promise<void> Uninstalls unused dependencies.
aPM.uninstallUnused();
//* Promise<void> Upgrades given dependencies to given versions.
//* (First array is normal dependencies, second array is devDependencies.)
aPM.upgradeModulesToVersions([
{
module: "axios",
version: "0.21.0"
}
], [
{
module: "@types/chrome",
version: "0.0.100"
}
]);
//* Promise<void> Upgrades all outdated dependencies to the latest version.
aPM.upgradeAllOutdatedToLatest();
//* Promise<void> Upgrades all deprecated dependencies to the latest version.
aPM.upgradeAllDeprecatedToLatest();
//* Console logs all changed dependencies between now and the last recheck.
console.log(aPM.changedModules);
Simply include the setting while creating the AutoPM instance.
const aPM = new AutoPM({ path: "D:\Coding\AutoPM", exclude: ["@types/chrome"] });
Settings | Type | Description | Default |
---|---|---|---|
path | string | Path to the directory. | process.cwd() |
exclude | Array | Modules to exlcude from unusedModules. |
FAQs
Simple module to detect unused dependencies and missing dependencies and functions to automatically install/remove those.
The npm package autopm receives a total of 83 weekly downloads. As such, autopm popularity was classified as not popular.
We found that autopm 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.