Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
embeddable-monaco
Advanced tools
Embeddable online playground using Monaco editor. Works great with Vue and Slidev!
Embeddable online playground using Monaco editor. Also made to be a Vue component, perfect to be embedded in Slidev slides.
$ npm install --save embeddable-monaco
or
$ yarn install embeddable-monaco
Edit file setup/main.ts
:
import {defineAppSetup} from '@slidev/types';
import {Embeddable} from 'embeddable-monaco';
import 'embeddable-monaco/dist/embeddable.css';
export default defineAppSetup(({app}) => {
Embeddable.install(app);
});
Use component Embeddable
in your slides:
<Embeddable
height="300"
sourceURL="https://embeddable.vercel.app/?lang=typescript&code=aW50ZXJmYWNlIFVzZXIgewogIGlkOiBudW1iZXI7CiAgbmFtZTogc3RyaW5nOwogIGFnZTogbnVtYmVyOwp9CgpmdW5jdGlvbiBnZXRWYWx1ZShvYmosIGtleSkgewogIHJldHVybiBvYmooa2V5KTsKfQoKbGV0IHVzZXIxOiBVc2VyID0ge2lkOiAxLCBuYW1lOiAnYWRtaW4nLCBhZ2U6IDE4fTsKbGV0IHZhbHVlID0gZ2V0VmFsdWUodXNlcjEsICduYW1lJyk7CmNvbnNvbGUubG9nKHZhbHVlKTsK"
lineNumbers="off"
/>
Embeddable
"100%"
"100%"
"typescript"
"// Start here..."
language
and code
. This will override language
and code
props.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
.https://embeddable.vercel.app/?lang=typescript&code=Ly8gU3RhcnQgaGVyZS4uLgo%3D
"on"
| "off"
"on"
"on"
| "off"
"on"
"auto"
| "visible"
| "hidden"
"auto"
shows the scrollbar when mouse hover; "visible"
makes the scrollbar always visible; "hidden"
always hides it."auto"
MIT, see the LICENSE file for more details.
FAQs
Embeddable online playground using Monaco editor. Works great with Vue and Slidev!
The npm package embeddable-monaco receives a total of 0 weekly downloads. As such, embeddable-monaco popularity was classified as not popular.
We found that embeddable-monaco 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.