# tmp-editor

> Edit temp file and get string when finish editing

Latest version **0.1.0** (published 2015-10-18) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-10-18 |
| First published | 2015-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Saran Siriphantnon |
| Maintainers | deoxen0n2 |
| Keywords | tmp, editor, string |

## Links

- npm: https://www.npmjs.com/package/tmp-editor
- Repository: https://github.com/deoxen0n2/tmp-editor
- Homepage: https://github.com/deoxen0n2/tmp-editor#readme
- Issues: https://github.com/deoxen0n2/tmp-editor/issues
- npm.io page: https://npm.io/package/tmp-editor

## Dependencies (2)

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

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-10-18

## README

# tmp-editor

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)

Temp file editing with `$EDITOR`. Get string from that file when finish.

## Install

```bash
$ npm-install --save tmp-editor
```

## Usage

```js
  var tmpEditor = require('tmp-editor')

  tmpEditor().then(function handleSuccess (text) {
    console.log('Text:', text)
  }).catch(function handleFailure (error) {
    console.log('Edit error:', error)
  })
```

## Promise and Callback

This module uses native `Promise` from `Node 0.12.x` and later for promise interface but standard node callback is also available: `tmpEditor(function onComplete (error, text) { ... })`.

## License

MIT. Copyright (c) Saran Siriphantnon.

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