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

embeddable-monaco

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embeddable-monaco - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "embeddable-monaco",
"version": "1.0.1",
"version": "1.0.2",
"repository": "https://github.com/dizys/embeddable-monaco",

@@ -5,0 +5,0 @@ "author": "Dizy (Ziyang) <dev@dizy.cc>",

@@ -48,23 +48,32 @@ # embeddable-monaco

- `width`: string
**Embeddable**
- width
- string
- default: `"100%"`
- `height`: string
- height
- string
- default: `"100%"`
- `language`: string
- language
- string
- Language name that Monaco supports.
- default: `"typescript"`
- `code`: string
- code
- string
- Default code to be shown.
- default: `"// Start here..."`
- `sourceURL`: string
- sourceURL
- string
- Use a source URL instead of `language` and `code`. This will override `language` and `code` props.
- Go to `https://embeddable.vercel.app/?lang=<YOUR_LANGUAGE>` and type in the code, then press `cmd/ctrl + S`. The address bar will give you this `sourceURL`.
- e.g. `https://embeddable.vercel.app/?lang=typescript&code=Ly8gU3RhcnQgaGVyZS4uLgo%3D`
- `lineNumbers`: `"on"` | `"off"`
- lineNumbers: `"on"` | `"off"`
- Whether to show line numbers on the left side.
- default: `"on"`
- `wordWrap`: `"on"` | `"off"`
- wordWrap
- string: `"on"` | `"off"`
- Whether to wrap a line into new lines when it reaches the full width of the editor.
- default: `"on"`
- `scrollbar`: `"auto"` | `"visible"` | `"hidden"`
- scrollbar
- string: `"auto"` | `"visible"` | `"hidden"`
- `"auto"` shows the scrollbar when mouse hover; `"visible"` makes the scrollbar always visible; `"hidden"` always hides it.

@@ -71,0 +80,0 @@ - default: `"auto"`

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