# codemirror-wrapped-line-indent

> A plugin for CodeMirror to handle wrapped line indentation

Latest version **1.0.9** (published 2025-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install codemirror-wrapped-line-indent
pnpm add codemirror-wrapped-line-indent
yarn add codemirror-wrapped-line-indent
bun add codemirror-wrapped-line-indent
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2025-04-02 |
| First published | 2023-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Muhammad Iqbal Fauzi |
| Maintainers | fauzi9331 |
| Keywords | codemirror, wrapped, indent |

## Links

- npm: https://www.npmjs.com/package/codemirror-wrapped-line-indent
- Repository: https://github.com/fauzi9331/codemirror-wrapped-line-indent
- Homepage: https://github.com/fauzi9331/codemirror-wrapped-line-indent#readme
- Issues: https://github.com/fauzi9331/codemirror-wrapped-line-indent/issues
- npm.io page: https://npm.io/package/codemirror-wrapped-line-indent

## Recent versions

- 1.0.9 (latest) — 2025-04-02
- 1.0.8-alpha.0 (next) — 2024-03-17
- 1.0.8 — 2024-03-17
- 1.0.7 — 2024-03-17
- 1.0.6 — 2024-03-17
- 1.0.6-alpha.8 — 2024-03-17
- 1.0.6-alpha.7 — 2024-03-17
- 1.0.6-alpha.6 — 2024-03-12
- 1.0.6-alpha.5 — 2024-03-12
- 1.0.6-alpha.4 — 2024-03-12
- 1.0.6-alpha.3 — 2024-03-12
- 1.0.6-alpha.2 — 2024-03-12
- 1.0.6-alpha.1 — 2024-03-12
- 1.0.6-alpha.0 — 2024-03-12
- 1.0.6-0 — 2024-03-12
- … 11 more at https://npm.io/package/codemirror-wrapped-line-indent/versions

## README

# Wrapped Line Indentation for CodeMirror

An extension for [CodeMirror](https://codemirror.net/) that adds indentation for wrapped lines.

## Installation

Using npm:

```bash
npm install codemirror-wrapped-line-indent
```

## Usage

```javascript
import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
import { wrappedLineIndent } from 'codemirror-wrapped-line-indent';

// ... your CodeMirror setup code ...

const state = EditorState.create({
  // ... other state options ...
  extensions: [
    EditorView.lineWrapping,
    wrappedLineIndent
  ]
});

const view = new EditorView({ state });
```


## License

[MIT](./LICENSE)

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