jo / couchdb-compile

Build CouchDB documents from directory, JSON or CommonJS module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Writing CommonJS modules in a CommonJS ddoc

jo opened this issue · comments

This is ugly. How could we improve it? Can we improve it?

module.exports = {
  lib: {
    indexable: 'module.exports = ' + require('./mylib').toString()
  }
};

@janl do you have an idea?