Created
November 6, 2014 20:28
-
-
Save coderguy/4d1184e4c122a71ca040 to your computer and use it in GitHub Desktop.
Repl with Node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var repl = require("repl"); | |
var config = require('./config/'); | |
var models = require('./app/models'); | |
var replServer = repl.start({ | |
prompt: "cio (" + config.get('env') + ") > " | |
}); | |
replServer.context.models = models; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment