Skip to content

Instantly share code, notes, and snippets.

View mishfit's full-sized avatar

Mishael Ochu mishfit

  • Salt Lake City, Utah
View GitHub Profile
@mishfit
mishfit / repl.js
Created May 22, 2017 04:57 — forked from amasad/repl.js
a project repl
const babel = require('babel-core');
const vm = require('vm');
const repl = require('repl');
let context = repl.start({ eval: evaluate }).context;
// Autorequire all models so that they're available by name in the repl.
const models = require('../server/models');
for (let name in models) {
context[name] = models[name];