Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

couchdb-push-interceptor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

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
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc