# es-index

> A simple approach for indexing data in elasticsearch that's also stored in another db.

Latest version **1.0.1** (published 2015-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install es-index
pnpm add es-index
yarn add es-index
bun add es-index
```

## 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.1 |
| Published | 2015-11-12 |
| First published | 2015-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | sethvincent |
| Maintainers | sethvincent |
| Keywords | elasticsearch |

## Links

- npm: https://www.npmjs.com/package/es-index
- Repository: https://github.com/sethvincent/es-index
- Issues: https://github.com/sethvincent/es-index/issues
- npm.io page: https://npm.io/package/es-index

## Dependencies (1)

- [elasticsearch](https://npm.io/package/elasticsearch.md) ^5.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-11-12
- 1.0.0 — 2015-11-12

## README

# es-index

A simple approach for indexing data in elasticsearch that's also stored in another db.

## Install

```
npm i --save es-index
```

## Usage

Maybe you've got a model that emits create, update, and delete events.

You could do something like this:

```
var esindex = require('es-index')

var es = esindex({
  index: 'chat',
  type: 'messages'
})

messages.on('create', function (data) {
  es.create(data)
})
```

## License

[MIT](LICENSE.md)

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