Socket
Socket
Sign inDemoInstall

@joshnuss/svelte-codemirror

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @joshnuss/svelte-codemirror

https://svelte.dev/repl/b2c657e8c49a42b6ba6aaf3dbd7d09d5


Version published
Maintainers
1
Created

Readme

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

Last updated on 15 Jul 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc