Skip to content

Instantly share code, notes, and snippets.

@heapwolf heapwolf/27.js
Created Aug 6, 2012

What would you like to do?
var nano = require('nano');
var request = require('request');
var spawn = require('child_process').spawn;
var server = nano('');
var createDbStream = server.db.create('pipe');
createDbStream.on('end', function () {
var db = server.use('pipe');
.pipe(db.attachment.insert('nodejs', 'logo.png', null, 'image/png'));
spawn('open', ['']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.