Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@joshnuss/svelte-codemirror

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joshnuss/svelte-codemirror

https://svelte.dev/repl/b2c657e8c49a42b6ba6aaf3dbd7d09d5

  • 0.2.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-47.83%
Maintainers
1
Weekly downloads
 
Created
Source

Svelte CodeMirror component

Provides an abstraction layer over CodeMirror that reduces the setup needed to make it work with Svelte.

Demo

https://svelte.dev/repl/b2c657e8c49a42b6ba6aaf3dbd7d09d5

Usage

<script>
  import 'codemirror/mode/javascript/javascript'
  import CodeMirror from '@joshnuss/svelte-codemirror'
  
  let editor
</script>

<CodeMirror bind:editor options={{ lineNumbers: true, mode: "javascript"}} value='const x = 42'/>

License

MIT

Keywords

FAQs

Package last updated on 15 Jul 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc