Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@neocodemirror/svelte
Advanced tools
Neocodemirror
Aims to provide Codemirror 6 as an easy to use codemirror action.
Usage:
<script>
import { codemirror } from '@neocodemirror/svelte'
</script>
<div use:codemirror={{ value: 'Hello world' }} />
With Language:
<script>
import { codemirror } from '@neocodemirror/svelte'
import { javascript } from '@codemirror/lang-javascript'
</script>
<div use:codemirror={{ value: 'Hello world', lang: javascript() }} />
Getting editor related data
<script>
import { codemirror, withCodemirrorInstance } from '@neocodemirror/svelte'
import { javascript } from '@codemirror/lang-javascript'
// This acts a readonly store. $ notation works here
const cmInstance = withCodemirrorInstance()
$: console.log($cmInstance.view, $cmInstance.value, $cmInstance.extensions)
</script>
<div use:codemirror={{ value: 'Hello world', lang: javascript(), instanceStore: cmInstance }} />
Note: Passing the store recieved from withCodemirrorInstance
is required to get the editor related data. If you don't pass this store, you will not get any data.
FAQs
Svelte Action to add codemirro to your apps 😉
The npm package @neocodemirror/svelte receives a total of 297 weekly downloads. As such, @neocodemirror/svelte popularity was classified as not popular.
We found that @neocodemirror/svelte 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.