🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

couchdb-push-interceptor

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-push-interceptor

A dumb CouchDB mock that listens for a PUT and writes the doc to file

0.1.0
latest
67

Supply Chain Security

100

Vulnerability

73

Quality

75

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Network access

Supply chain risk

This module accesses the network.

Found 1 instance in 1 package

Version published
Maintainers
1
Created

couchdb-put-interceptor

A dumb CouchDB mock that listens for a PUT and writes the doc to file

Why?!

I wanted Kanso (a build and deployment tool for CouchApps) to build my project to a file so that I could:

  • create a build artifact in my company's CI system for maintaining a crumb trail;
  • use WebStorm LiveEdit to see my changes appear 'live' in the browser.

The second aspiration isn't really achieved through doing this but I've sure as hell managed to get a snapshot of my app compiled neatly into a single file along with its dependencies. I'll now be able to drop this in storage and rest peacefully in knowing that I can easily roll back to a previous version of my project on demand.

Usage

$ ./interceptor.js 5983
Waiting for ze payload...
GET /_session?
 .. handling session request
HEAD /my-project/
 .. handling db HEAD request
HEAD /my-project/_design/my-project
 .. handling db HEAD request
PUT /my-project/_design/my-project
 .. handling doc PUT request
Creating payload output stream to file: captured.json
Finished receiving the payload; winding down server

Your goodies are written to captured.json in your pwd, like so:

$ ls -lah
-rw-r--r--   1 luke  staff   3.5M 21 Oct 15:58 captured.json

FAQs

Package last updated on 21 Oct 2013

Did you know?

Socket

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