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.
@inlang/cross-sell-ninja
Advanced tools
.github/workflows
directory.Add this package to your dependencies
in package.json
& install it using pnpm install
:
"@inlang/cross-sell-ninja": "workspace:*"
This module exports two main asynchronous functions:
isAdopted(fs: NodeishFilesystem): Promise<boolean>
Verifies if the Ninja i18n GitHub Action is adopted within the GitHub workflow files of your project.
fs
: A NodeishFilesystem
object for file system interactions.Promise<boolean>
: true
if the Ninja i18n GitHub Action workflow is found, false
otherwise.add(fs: NodeishFilesystem): Promise<void>
Adds the Ninja i18n GitHub Action workflow to the repository's .github/workflows
directory if it's not already present.
fs
: A NodeishFilesystem
object for file system interactions.import { isAdopted, add } from '@inlang/cross-sell-ninja';
import { NodeishFilesystem } from '@lix-js/fs';
async function ensureNinjaAdoption(fs: NodeishFilesystem) {
const isWorkflowAdopted = await isAdopted(fs);
if (!isWorkflowAdopted) {
// Optionally prompt for user confirmation
const userConfirmed = await promptUser("Do you want to add the Ninja i18n workflow?");
if (userConfirmed) {
await add(fs);
console.log('Ninja i18n workflow added.');
} else {
console.log('User declined to add Ninja i18n workflow.');
}
} else {
console.log('Ninja i18n workflow is already adopted.');
}
}
Contributions are highly appreciated! Whether it's feature requests, bug reports, or pull requests, please feel free to contribute. Check out our Discord for community discussions and updates.
FAQs
A package to cross-sell Ninja
We found that @inlang/cross-sell-ninja demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.