Guest User

browserify experiment

a guest
Apr 4th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // a.js
  2. module.exports = function() {
  3.   console.log('calling from a.js');
  4. }
  5.  
  6. console.log("this runs in a.js");
  7.  
  8. // b.js
  9. var a = require('./a');
  10.  
  11. function b() {
  12.   console.log('calling from b.js');
  13.   a();
  14. }
  15.  
  16. b();
Advertisement
Add Comment
Please, Sign In to add comment