# string-editor

> Edit a string using $EDITOR from within your node app.

Latest version **0.1.2** (published 2015-04-20) · 0 weekly downloads

## Install

```sh
npm install string-editor
pnpm add string-editor
yarn add string-editor
bun add string-editor
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-04-20 |
| First published | 2014-01-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Maintainers | mafintosh |
| Keywords | string, editor, edit, env, cli, app |

## Links

- npm: https://www.npmjs.com/package/string-editor
- Repository: https://github.com:mafintosh/string-editor
- Homepage: https://github.com/mafintosh/string-editor
- Issues: https://github.com/mafintosh/string-editor/issues
- npm.io page: https://npm.io/package/string-editor

## Dependencies (1)

- [editor](https://npm.io/package/editor.md) ^1.0.0

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 0.1.2 (latest) — 2015-04-20
- 0.1.1 — 2015-04-20
- 0.1.0 — 2014-01-04

## README

# string-editor

Edit a string using $EDITOR from within your node app.

	npm install string-editor

## Usage

``` js
var edit = require('string-editor');

// this launches your $EDITOR with a tmp file containing "hello world"
edit('hello world', function(err, result) {
	// when you are done editing result will contain the string
	console.log(result);
});
```

Sometimes it can be useful to set an filename to help your editor to enable highlighting etc.

``` js
// we pass app.js as a filename to help with highlighting
edit('var a = 42;', 'app.js', function(err, result) {
	console.log(result);
})
```

Note that `app.js` will still be a tmp file

## License

MIT

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