Skip to content

Commit

Permalink
updating version and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennings Anderson committed Oct 10, 2018
1 parent e160997 commit d7f096e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Stream-Reduce
# JSON-Stream-Reduce

This is a simplified framework built off Mapbox's [tile-reduce](//github.com/mapbox/tile-reduce) to perform map-reduce functions against large files of line-delimited JSON. This simply removes all of the `tile` processing and instead passes each new line in the file to the map script.

This is currently used for geometry-reconstruction of historical OSM objects as output from the [OSM-Wayback](//github.com/osmlab/osm-wayback) utility

### Install

npm install json-stream-reduce

### Example Implementation

#### File: `example/index.js`
Expand Down Expand Up @@ -36,13 +40,11 @@ This is currently used for geometry-reconstruction of historical OSM objects as
{"count":10}
{"count":10}
{"count":10}

#### Use
$ node examples/index.js

>>Starting up 2 workers... Job started.
>>Processing lines from file: examples/file.jsonseq
>>5 lines processed in 0s.
>>Finished, value of count: 50


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-stream-reduce",
"version": "1.0.0",
"version": "1.0.1",
"description": "Based on Mapbox's tile-reduce, a framework for map-reduce jobs in Node from streaming input",
"main": "src/index.js",
"dependencies": {
Expand Down

0 comments on commit d7f096e

Please sign in to comment.