Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
atom-package-deps
Advanced tools
Atom-Package-Deps is a module that lets your atom package depend on other atom packages, It's quite simple and shows a nice progress bar as a notification as the packages are installed.
You need to have an array of package deps in your package manifest, like
{
"name": "linter-ruby",
...
"package-deps": [{ "name": "linter" }]
}
If only the name of the package is needed, you can specify the name directly as a string instead of an object for that entry:
"package-deps": ["linter"]
You can also specify the minimum required version (version not semver-range!) of the package, or give users a choice by specifying multiple ones.
{
"name": "linter-ruby",
...
"package-deps": [
// Add a dependency on a package:
{ "name": "linter", "minimumVersion": "2.0.0" },
// Add a dependency in any of the following packages,
// so if one is already installed, user is not prompted to install the other
[ { "name": "linter" }, { "name": "atom-ide-ui" } ]
]
}
Because the package installation is async, it returns a promise that resolves when all the dependencies have been installed.
'use babel'
module.exports = {
activate() {
// replace the example argument 'linter-ruby' with the name of this Atom package
require('atom-package-deps')
.install('linter-ruby')
// ^ NOTE: This is the name of YOUR package, NOT the package you want to install.
.then(function() {
console.log('All dependencies installed, good to go')
})
},
}
You can use this package programatically via this exported interface:
export function install(packageName: string, hideUserPrompt: boolean = false)
Alternatively, if you want to install dependencies via CLI, this package exposes a bin for that
Usage: atom-package-deps <directory> <hideUserPrompt = true>
Installation Prompt
Installation Prompt with choices:
Installation Progress
Installation Complete
This project is licensed under the terms of MIT license, See the LICENSE file for more info.
FAQs
Automatically install package dependencies
The npm package atom-package-deps receives a total of 385 weekly downloads. As such, atom-package-deps popularity was classified as not popular.
We found that atom-package-deps 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.