Skip to content

Instantly share code, notes, and snippets.

@raine
Last active September 11, 2015 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raine/e5ee7faaf6faf52d5da0 to your computer and use it in GitHub Desktop.
Save raine/e5ee7faaf6faf52d5da0 to your computer and use it in GitHub Desktop.
~ ❯❯❯ cat ~/noderepl/myrepl.js
var repl = require('repl').start('> ');
require('repl.history')(repl, process.env.HOME + '/.node_history');
var R = repl.context.R = require('ramda');
R.functions(R).forEach(function(f) {
repl.context[f] = R[f];
});
repl.context.treis = require('treis');
~ ❯❯❯ noderepl
> map
[Function: f2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment