You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • What filename/module name did you use? I just tried the following and it worked fine:

    In node_modules/foo.js

    exports.foo = "Hello World";
    

    And in Espruino's console:

    >require("foo")
    ={
          "foo":"Hello World"
        }
    
About

Avatar for Gordon @Gordon started