
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
simple-codepen-mika
Advanced tools
what is monaco?: [link](https://github.com/microsoft/monaco-editor)
what is codepen? : [link](https://codepen.io/?cursor=ZD0xJm89MCZwPTEmdj04MjI0Nw==)
利用 shadow dom 渲染 codepen 在线编译结果,主要为了实现 css 及 js 的沙箱隔离。
通过 proxy 代理 window,实现编辑 js 执行上下文可访问到 window,同时实现访问全局变量名默认指向 window 作用域。
编辑器内所声明的全局变量,包括函数,默认指向 window。且在重新编译及编辑器销毁生命周期中,清空相关定时器及监听对象等默认 window 事件。
支持编辑器内 cdn 包引用
通过浏览器 indexedDB 缓存在线编辑器内容
sass,less 等语法支持
codepen 更多内容展示
$ yarn
$ yarn dev
$ yarn build && yarn server
preview:
codepen:
mika-viewer:
FAQs
## editor show demo of codepen based on monaco
The npm package simple-codepen-mika receives a total of 4 weekly downloads. As such, simple-codepen-mika popularity was classified as not popular.
We found that simple-codepen-mika 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.