Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@databutton/codemirror-languageserver
Advanced tools
This plugin enables code completion, hover tooltips, and linter functionality by connecting a CodeMirror 6 editor with a language server over WebSocket.
npm i codemirror-languageserver
import { languageServer } from 'codemirror-languageserver';
const transport = new WebSocketTransport(serverUri)
var ls = languageServer({
// WebSocket server uri and other client options.
serverUri,
rootUri: 'file:///',
// Alternatively, to share the same client across multiple instances of this plugin.
client: new LanguageServerClient({
serverUri,
rootUri: 'file:///'
}),
documentUri: `file:///${filename}`,
languageId: 'cpp' // As defined at https://microsoft.github.io/language-server-protocol/specification#textDocumentItem.
});
var view = new EditorView({
state: EditorState.create({
extensions: [
// ...
ls,
// ...
]
})
});
Contributions are welcome.
https://user-images.githubusercontent.com/348107/120141150-c6bb9180-c1fd-11eb-8ada-9b7b7a1e4ade.mp4
The library is available under the BSD (3-Clause) License.
FAQs
Language Server Plugin for CodeMirror 6
The npm package @databutton/codemirror-languageserver receives a total of 10 weekly downloads. As such, @databutton/codemirror-languageserver popularity was classified as not popular.
We found that @databutton/codemirror-languageserver 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 researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.