Socket
Socket
Sign inDemoInstall

ndjson-to-couchdb

Package Overview
Dependencies
85
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ndjson-to-couchdb

Stream ndjson to couchdb


Version published
Weekly downloads
9
Maintainers
1
Install size
7.37 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 03 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc