# cassandra-write-stream

> ## Example usage ```javascript //simply create the CassandraWriteStream... let cassy_stream = new CassandraWriteStream( {contactPoints: ['127.0.0.1', '127.0.0.2'], keyspace: test_keyspace_name}, `INSERT INTO data (product_id, field, value) VALUES

Latest version **0.0.1** (published 2018-07-12) · 0 weekly downloads

## Install

```sh
npm install cassandra-write-stream
pnpm add cassandra-write-stream
yarn add cassandra-write-stream
bun add cassandra-write-stream
```

## 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.0.1 |
| Published | 2018-07-12 |
| First published | 2018-07-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^8.11.1 |
| Dependencies | 2 |
| Unpacked size | 19.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | torra |

## Links

- npm: https://www.npmjs.com/package/cassandra-write-stream
- npm.io page: https://npm.io/package/cassandra-write-stream

## Dependencies (2)

- [bluebird](https://npm.io/package/bluebird.md) 3.5.1
- [cassandra-driver](https://npm.io/package/cassandra-driver.md) 3.5.0

## Recent versions

- 0.0.1 (latest) — 2018-07-12

## README

# CassandraWriteStream

## Example usage
```javascript
//simply create the CassandraWriteStream...
let cassy_stream = new CassandraWriteStream(
  {contactPoints: ['127.0.0.1', '127.0.0.2'], keyspace: test_keyspace_name},
  `INSERT INTO data (product_id, field, value) 
    VALUES (?, ?, ?) USING TTL ${1000}`,
  {prepare: true, isIdempotent: true}
);

//and then pipe any Readable to it!
let s = new Readable();
s.pipe(cassy_stream)
.on('finish', finish_handler)
.on('error', error_handler);
```

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