# codemirror-console-ui

> codemirror-console ui components

Latest version **3.2.0** (published 2024-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install codemirror-console-ui
pnpm add codemirror-console-ui
yarn add codemirror-console-ui
bun add codemirror-console-ui
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2024-04-16 |
| First published | 2014-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | azu |
| Maintainers | azu |

## Links

- npm: https://www.npmjs.com/package/codemirror-console-ui
- Repository: https://github.com/azu/codemirror-console-ui
- Homepage: https://github.com/azu/codemirror-console-ui/
- Issues: https://github.com/azu/codemirror-console-ui/issues
- npm.io page: https://npm.io/package/codemirror-console-ui

## Dependencies (6)

- [domify](https://npm.io/package/domify.md) ^1.4.0
- [codemirror](https://npm.io/package/codemirror.md) ^5.13.2
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.3.3
- [@azu/format-text](https://npm.io/package/@azu/format-text.md) ^1.0.2
- [codemirror-console](https://npm.io/package/codemirror-console.md) ^3.2.0
- [in-browser-language](https://npm.io/package/in-browser-language.md) ^1.0.2

## Recent versions

- 3.2.0 (latest) — 2024-04-16
- 3.1.0 — 2023-06-05
- 3.0.4 — 2022-02-06
- 3.0.3 — 2022-02-06
- 3.0.2 — 2022-01-03
- 3.0.1 — 2022-01-03
- 3.0.0 — 2022-01-03
- 2.0.5 — 2019-05-05
- 2.0.4 — 2019-03-16
- 2.0.1 — 2018-12-29
- 2.0.0 — 2018-12-27
- 1.4.2 — 2018-01-04
- 1.4.1 — 2018-01-02
- 1.3.1 — 2016-09-11
- 1.3.0 — 2016-09-07
- … 16 more at https://npm.io/package/codemirror-console-ui/versions

## README

# codemirror-console-ui

Web UI Components of [codemirror-console](../codemirror-console).

## Installation

``` sh
npm install codemirror-console-ui
```

## Usage

```js
import { attachToElement } from "codemirror-console-ui" 
const codeBlock = document.querySelector("code");
attachToElement(codeBlock, "default text", {
   state: "open",
   scrollIntoView: true
});
```

## How to custom Localization?

If you want to custom locale, please add translated text to [components/localization.js](components/localization.js).

1. Add translated text to [components/localization.js](components/localization.js)
2. Add lang(like "en", "ja") to [components/mirror-console-component.js](components/mirror-console-component.js)
3. Submit Pull Request!

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## License

MIT

---
_Source: https://npm.io/package/codemirror-console-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
