# edit

> wraps codemirror into an API that you can require() and insert into a page as a standlone editor, easily

Latest version **1.0.2** (published 2017-09-14) · BSD license · 0 weekly downloads

## Install

```sh
npm install edit
pnpm add edit
yarn add edit
bun add edit
```

## 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 | 1.0.2 |
| Published | 2017-09-14 |
| First published | 2014-10-18 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 14 |
| Author | max ogden |
| Maintainers | maxogden |

## Links

- npm: https://www.npmjs.com/package/edit
- Repository: https://github.com/maxogden/edit
- Issues: https://github.com/maxogden/edit/issues
- npm.io page: https://npm.io/package/edit

## Dependencies (4)

- [brfs](https://npm.io/package/brfs.md) ^1.2.0
- [extend](https://npm.io/package/extend.md) ^2.0.0
- [codemirror](https://npm.io/package/codemirror.md) ^4.6.0
- [insert-css](https://npm.io/package/insert-css.md) ^0.2.0

## Recent versions

- 1.0.2 (latest) — 2017-09-14
- 1.0.1 — 2014-10-18
- 1.0.0 — 2014-10-18

## README

# edit

wraps [codemirror](http://npmjs.org/codemirror) into a high-level API that you can require() and insert into a page as a standlone editor, easily.

the codemirror stylesheet will automatically get inserted into the page for you when you create a new `edit` instance.

## installation

```
npm install edit --save
```

now you can `require('edit')` and use it in the browser with [browserify](http://browserify.org)

## usage

this will create a codemirror editor and append it to `document.body`:

```js
var edit = require('edit')
edit()
```

you can also pass in codemirror options, including a `container` option which is where the editor will get appended into:

```js
var edit = require('edit')
var editor = edit({
  container: document.querySelector('.editor'),
  tabSize: 16
})
```

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