
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
@neo4j-cypher/react-codemirror
Advanced tools
This package exports a React component that provides a cypher editor using codemirror 6.
You can use this package like the following:
import React from 'react';
import CypherEditor from '@neo4j-cypher/react-codemirror';
const editorProps = {
onValueChanged: value => {}, // optional
onFocusChanged: focused => {}, // optional
onScrollChanged: scrollInfo => {}, // optional
onPositionChanged: ({ line, column, position }) => {}, // optional
initialOptions: {
theme: 'light', // optional, defaults to light
extensions: [ /* override extensions */ ] // optional, defaults to a sensible list of extensions.
},
initialSchema: { /* ... */ }, // optional, see example in demos
initialValue: 'this is the text to show in the editor',
initialPosition: { row: 2, column: 3}, // optional, rows are 1 based, columns are 0 based
classNames: [], // optional, array of classnames to add to the root dom element.
theme: 'light' // optional, should be light or dark, defaults to light
};
const MyReactComponent = () => {
return (
<CypherEditor {...editorProps} />
);
}
FAQs
React CodeMirror 6 Cypher editor
The npm package @neo4j-cypher/react-codemirror receives a total of 4,526 weekly downloads. As such, @neo4j-cypher/react-codemirror popularity was classified as popular.
We found that @neo4j-cypher/react-codemirror 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.