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

@neo4j-cypher/codemirror

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j-cypher/codemirror

Cypher query language integration with CodeMirror 6 editor

  • 1.0.0-next.18
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.3K
increased by12.38%
Maintainers
1
Weekly downloads
 
Created
Source

@neo4j-cypher/codemirror

This package provides a variety of extensions to enable cypher language support in codemirror 6.

This package exports those extensions, and provides a convenience method to create an editor with the following API:

// import { EditorView } from 'codemirror';
// import { CypherEditorSupport } from '@neo4j-cypher/editor-support';

const createCypherEditor = (
  parentDOMElement,
  { text = "initial text here", extensions = undefined } = {}
) => {
  // create editor & editorSupport using given extensions, or default extensions if undefined
  const editor = new EditorView({
    parentDOMElement,
    state: initialState // also contains editorSupport for use by extensions
  });
  return {
    editor: EditorView,
    editorSupport: CypherEditorSupport
  };
};

Keywords

FAQs

Package last updated on 19 Jan 2023

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