Skip to content

Instantly share code, notes, and snippets.

@jperkelens
Created September 13, 2012 23:09
Show Gist options
  • Save jperkelens/3718466 to your computer and use it in GitHub Desktop.
Save jperkelens/3718466 to your computer and use it in GitHub Desktop.
Class in VanillaJS
var Datomic = module.exports = function(server, port, alias, name) {
root = blah
this.db_uri = blah
this.createDatabase = function(done) {...}
}
var Datomic = require('datomic')
var conn = new Datomic()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment