emacs org-mode tech

Abstract

I want to do literate programming in JavaScript. I had a tough time figuring out how to import Node modules in Emacs Org-Mode (Babel) JavaScript code. I talk about how to do it.

tl;dr

#+begin_src js :results => pp  :dir /home/kiru/ppp/testbabel
  module.paths.push(process.env.PWD + "/node_modules");
  var r = require('request');
  return typeof(r);
#+end_src

#+RESULTS:
: 'function'