# @lingxiteam/monaco-editor

> js 编辑器，可以对代码进行提示、babel 编译

Latest version **0.3.2** (published 2025-03-06) · 0 weekly downloads

## Install

```sh
npm install @lingxiteam/monaco-editor
pnpm add @lingxiteam/monaco-editor
yarn add @lingxiteam/monaco-editor
bun add @lingxiteam/monaco-editor
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2025-03-06 |
| First published | 2023-11-17 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | limanpm, wanerrr, mishi-brother, hammersjs, zhang.guoyong, zzzzjq, diyc, goulili, pengyh, wujian666, taiyangteng, cenxiaolian, xiaohuoni, duan_duan, yaozanwen, brinkr, babelczx |

## Links

- npm: https://www.npmjs.com/package/@lingxiteam/monaco-editor
- Repository: https://github.com/LimMem/editorview
- Issues: https://github.com/LimMem/editorview/issues
- npm.io page: https://npm.io/package/@lingxiteam/monaco-editor

## Dependencies (6)

- [lodash.last](https://npm.io/package/lodash.last.md) ^3.0.0
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2
- [sql-formatter](https://npm.io/package/sql-formatter.md) ^15.3.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) 7.23.2
- [lodash.debounce](https://npm.io/package/lodash.debounce.md) ^4.0.8
- [@lingxiteam/monaco-react](https://npm.io/package/@lingxiteam/monaco-react.md) 4.4.6-alpha.2

## Recent versions

- 0.3.2 (latest) — 2025-03-06
- 0.3.1-alpha.2 — 2024-11-26
- 0.3.1-alpha.1 — 2024-11-23
- 0.2.8 — 2024-11-23
- 0.3.0-assembly.1 — 2024-11-04
- 0.3.0-alpha.15 — 2024-09-06
- 0.3.0-alpha.14 — 2024-09-02
- 0.3.0-alpha.13 — 2024-07-25
- 0.3.0-alpha.12 — 2024-06-25
- 0.3.0-alpha.11 — 2024-06-25
- 0.3.0-alpha.10 — 2024-05-27
- 0.3.0-alpha.9 — 2024-05-24
- 0.3.0-alpha.8 — 2024-05-22
- 0.3.0-alpha.7 — 2024-05-17
- 0.3.0-alpha.6 — 2024-05-10
- … 27 more at https://npm.io/package/@lingxiteam/monaco-editor/versions

## README

# editorview

js 编辑器，可以对代码进行提示、babel 编译

## Getting Started

> npm i editorview

```javascript
import EditorView, { EditorImperativeHandleHandle } from 'editorview/es/EditorView';

  const editRef = useRef<EditorImperativeHandleHandle>();

  // 获取值 默认获取es6 -> es5代码
  editRef.current?.getValue();

  return (
    <EditorView
      forwardRef={editRef}
      onError={(err) => {
        console.log(err); // 代码转化失败时回调
      }}
      defaultValue={defaultEditorText}
      className={styles.editor}
    />
  );

```

## [在线效果图](https://editorview-git-gh-pages-limmem.vercel.app/editor-view)

---
_Source: https://npm.io/package/@lingxiteam/monaco-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
