
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
monaco-editor-comp
Advanced tools
This packages provides a wrapped monaco-editor
. The monaco-languageclient
can be activated to connect to a configurable languages server.
The component can be fully configured with embedded JavaScript. It can be configured as regular or diff editor.
''
);javascript
)vs-light
)getMonacoEditorOptions
in inner script tag. You can directly pass monaco-editor options. See examples below. Attach the id directly to the name if you use more than one editor (e.g. getMonacoEditorOptions42
).getMonacoDiffEditorOptions
. It can only be used if enableInlineConfig
is passed. See examples below. Attach the id directly to the name if you use more than one editor (e.g. getMonacoDiffEditorOptions42
).javascript
)''
)getLanguageClientOptions
if enableInlineConfig
is set):
true
), if false
implementation tries to use a web worker instead (need to set workerURL)false
)localhost
)8080
)''
)''
)true
) or a worker with classical syntax (false
) (default: false
)''
)Proper styling of at least the Diff Editor requires that the codicon font is loaded outside the web component. Due to limitations of the Shadow DOM this can unfortunately not be transparently handled by the web component and requires user code adjustments shown here and monaco-editor sample).
If you have node.js LTS available, then from the root of the project run:
npm i
npm run build
Afterwards launch the Vite.js development mode:
npm run dev
You find examples (manual human testing) in the root of the repository index.html. They can be used once Vite is running.
This project was inspired by:
FAQs
Lit Component for Monaco-Editor and Monaco Languageclient Wrapper
The npm package monaco-editor-comp receives a total of 8 weekly downloads. As such, monaco-editor-comp popularity was classified as not popular.
We found that monaco-editor-comp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.