
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@inlang/cross-sell-sherlock
Advanced tools
.vscode/extensions.json
file..vscode/extensions.json
file if they are not already present.Put this one into your dependencies
in package.json
& install it with pnpm install
:
"@inlang/cross-sell-sherlock": "workspace:*"
The module exports two main asynchronous functions:
isAdopted(fs: NodeishFilesystem, workingDirectory?: string): Promise<boolean>
Checks whether the inlang.vs-code-extension
is recommended in the workspace.
fs
: A NodeishFilesystem
object to interact with the file system.workingDirectory
: (Optional) The working directory path.Promise<boolean>
: true
if the extension is recommended, false
otherwise.add(fs: NodeishFilesystem, workingDirectory?: string): Promise<void>
Adds the inlang.vs-code-extension
recommendation to the workspace if it's not already present.
fs
: A NodeishFilesystem
object to interact with the file system.workingDirectory
: (Optional) The working directory path.import { isAdopted, add } from '@inlang/cross-sell-sherlock';
import { NodeishFilesystem } from '@lix-js/fs';
async function addSherlock(fs: NodeishFilesystem) {
const isExtensionAdopted = await isAdopted(fs);
if (!isExtensionAdopted) {
// prompt for user confirmation
const userConfirmed = await promptUser();
if (userConfirmed) {
await add(fs);
console.log('Extension recommendation added.');
} else {
console.log('User declined to add extension recommendation.');
}
}
}
Contributions are welcome! If you have a feature request, bug report, or proposal, please open an issue or submit a pull request. Our Discord can be found here.
FAQs
A package to cross-sell Sherlock
The npm package @inlang/cross-sell-sherlock receives a total of 2 weekly downloads. As such, @inlang/cross-sell-sherlock popularity was classified as not popular.
We found that @inlang/cross-sell-sherlock demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.