6.0.0 • Published 7 years ago

ndjson-to-couchdb v6.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

ndjson-to-couchdb

Pipe ndjson into couchdb. Strems out the doc with the new _id and _rev.

Install

npm i ndjson-to-couchdb -g

Usage

cat tests/assets/example.njson | ndjson-to-couchdb http://localhost:5984/test

Options

  • --force=true if there is an existing doc with the same _id fetch the existing _rev and overwrite the doc.
  • --key=keyname the name of the field to use to set the primary key value.
  • --prev_rev_fiel=prev_rev add a field to the emitted doc with name 'prev_rev' that will hold the last _rev before the update
  • --copy_fields_from_prev_rev=a,b preserve the fields a and b values by copying the val from the old rev to the new rev
6.0.0

7 years ago

5.1.1

7 years ago

5.1.0

8 years ago

5.0.0

8 years ago

4.1.2

8 years ago

4.1.1

8 years ago

4.1.0

8 years ago

4.0.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago