elasticsearch-bulk-index-stream
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -5,2 +5,9 @@ # Change Log | ||
## [0.0.3] - 2015-10-28 | ||
### Changed | ||
- Updated README | ||
### Added | ||
- API documentation | ||
## [0.0.2] - 2015-10-27 | ||
@@ -7,0 +14,0 @@ ### Added |
{ | ||
"name": "elasticsearch-bulk-index-stream", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A writable stream for bulk indexing records in Elasticsearch", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "eslint . && istanbul cover --print both _mocha test" | ||
"test": "eslint . && istanbul cover --print both _mocha test", | ||
"preversion": "jsdoc2md index.js > api.md" | ||
}, | ||
@@ -17,2 +18,3 @@ "author": "Espen Volden <voldern@hoeggen.net>", | ||
"istanbul": "^0.4.0", | ||
"jsdoc-to-markdown": "^1.2.0", | ||
"mocha": "^2.3.3", | ||
@@ -19,0 +21,0 @@ "sinon": "^1.17.2", |
@@ -47,5 +47,16 @@ # elasticsearch-bulk-index-stream | ||
someInputStream.pipe(stream); | ||
someInputStream | ||
.pipe(stream) | ||
.on('error', function(error) { | ||
// Handle error | ||
}) | ||
.on('finish', function() { | ||
// Clean up Elasticsearch client? | ||
}) | ||
``` | ||
# API | ||
See [api.md](api.md). | ||
# See | ||
@@ -61,4 +72,9 @@ | ||
`elasticsearch-streams` also implements its own event named `close` to | ||
indicate that all the data has been written to Elasticsearch. This | ||
will break modules like [pump](https://www.npmjs.com/package/pump) | ||
that depend on the `finish` event. | ||
# License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14515
15
79
9